ruby on rails - RSpec verbose error messages -
when run rspec test fails, many lines of messages don't understand.
for instance, suppose run:
expect(true).to be_false
then console gets cluttered messages origin #
failures: 1) test failure/error: expect(true).to be_false expected true respond `false?` # ./spec/controllers/wing_relationships_controller_spec.rb:43:in `block (3 levels) in <top (required)>' # /users/mac/.rvm/gems/ruby-2.1.2@global/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:241:in `load' # /users/mac/.rvm/gems/ruby-2.1.2@global/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:241:in `block in load' # /users/mac/.rvm/gems/ruby-2.1.2@global/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:232:in `load_dependency' # /users/mac/.rvm/gems/ruby-2.1.2@global/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:241:in `load' # /users/mac/.rvm/gems/ruby-2.1.2@global/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:241:in `load' # /users/mac/.rvm/gems/ruby-2.1.2@global/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:241:in `block in load' # /users/mac/.rvm/gems/ruby-2.1.2@global/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:232:in `load_dependency' # /users/mac/.rvm/gems/ruby-2.1.2@global/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:241:in `load' # -e:1:in `<main>'
the error messages vary, , extremely long.
when run many tests, gets hard read results. rid of those. suggestions? turned off --warning
in rspec
it's improve find out errors come , prepare leaky specs rather ignoring errors.
if not interested in doing reason can use: utilize simple trick if want to:
rspec 2>/dev/null
ruby-on-rails rspec
No comments:
Post a Comment