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 91d4c1b commit 224aeb0Copy full SHA for 224aeb0
spec/rspec/active_model/mocks/mock_model_spec.rb
@@ -229,12 +229,12 @@
229
expect(model.column_a).to eq("a")
230
end
231
it "does not stub column accessor if already stubbed after declaration (with string)" do
232
- allow(@model).to receive_messages("column_a" => "a")
+ allow(@model).to receive(:column_a) { "a" }
233
@model.respond_to?("column_a")
234
expect(@model.column_a).to eq("a")
235
236
it "does not stub column accessor if already stubbed after declaration (with symbol)" do
237
- allow(@model).to receive_messages(:column_a => "a")
238
239
240
0 commit comments