Skip to content

Commit c8fe152

Browse files
committed
Merge pull request #979 from u2/allow_message_expectations_on_nil
Use allow_message_expectations_on_nil to disable warnings
2 parents b792715 + d3e81d6 commit c8fe152

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spec/grape/dsl/parameters_spec.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ def validates_reader
4343
subject { ParametersSpec::Dummy.new }
4444

4545
describe '#use' do
46-
before { allow(subject.api).to receive(:namespace_stackable).with(:named_params) }
46+
before {
47+
allow_message_expectations_on_nil
48+
allow(subject.api).to receive(:namespace_stackable).with(:named_params)
49+
}
4750
let(:options) { { option: 'value' } }
4851
let(:named_params) { { params_group: proc {} } }
4952

0 commit comments

Comments
 (0)