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:
parent
7e73e72a5d
commit
6d5eb0831b
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue