Skip to content

Commit

Permalink
[expectations] Pre rspec/rspec-expectations#1245 workaround
Browse files Browse the repository at this point in the history
This commit was imported from rspec/rspec-expectations@566311c.
  • Loading branch information
JonRowe committed Dec 27, 2020
1 parent a80f1dc commit 2da8714
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def should_not(*)
end

RSpec.configure do |rspec|
rspec.expose_dsl_globally = false
rspec.expose_dsl_globally = false if rspec.respond_to?(:expose_dsl_globally)

rspec.mock_with :rspec do |mocks|
mocks.syntax = :expect if mocks.respond_to?(:syntax=) # RSpec 4 removed `syntax=`
Expand Down

0 comments on commit 2da8714

Please sign in to comment.