Skip to content

Commit

Permalink
Fix project source dirs.
Browse files Browse the repository at this point in the history
  • Loading branch information
myronmarston committed Nov 12, 2015
1 parent 2e41d07 commit 8aa8cc2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/spec_helper.rb
Expand Up @@ -59,6 +59,13 @@ def hash_inspect(hash)
end

config.disable_monkey_patching!

# We don't want rspec-core to look in our `lib` for failure snippets.
# When it does that, it inevitably finds this line:
# `RSpec::Support.notify_failure(RSpec::Expectations::ExpectationNotMetError.new message)`
# ...which isn't very helpful. Far better for it to find the expectation
# call site in the spec.
config.project_source_dirs -= ["lib"]
end

RSpec.shared_context "with #should enabled", :uses_should do
Expand Down

0 comments on commit 8aa8cc2

Please sign in to comment.