1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Enable should syntax for RSpec

We can always get rid of this if we switch all of the specs to use
`expect` instead, but until then we should probably make our RSpec
configuration match how our specs are written.
This commit is contained in:
Ryan Fitzgerald 2014-08-18 15:17:18 -04:00
parent 7e73e72a5d
commit 6d5eb0831b

View file

@ -33,6 +33,9 @@ end
puts "Ruby v#{RUBY_VERSION} (#{defined?(RUBY_ENGINE) ? RUBY_ENGINE : "ruby"}), Pry v#{Pry::VERSION}, method_source v#{MethodSource::VERSION}, CodeRay v#{CodeRay::VERSION}, Slop v#{Slop::VERSION}"
RSpec.configure do |config|
config.expect_with :rspec do |c|
c.syntax = [:should, :expect]
end
config.alias_example_to :should
config.include PryTestHelpers
end