We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 947a171 commit 89c461dCopy full SHA for 89c461d
spec/rspec/active_model/mocks/mock_model_spec.rb
@@ -298,6 +298,13 @@
298
end
299
300
context "with as_null_object" do
301
+ around do |example|
302
+ original = RSpec::Mocks.configuration.syntax
303
+ RSpec::Mocks.configuration.syntax = :should
304
+ example.run
305
+ RSpec::Mocks.configuration.syntax = original
306
+ end
307
+
308
it "says it will not respond_to?(xxx_before_type_cast)" do
309
model = NonActiveRecordModel.new.as_null_object
310
expect(model.respond_to?("title_before_type_cast")).to be(false)
0 commit comments