Closed jdickey closed 8 years ago
This should be reversible, but see Issue #1.
This will allow us to write an expectation such as
let(:params) { { param1: true, param2: 42 } } # ... expect(SomeClass).must_require_static_call_param params, :param1
which would have the same effect as
let(:params) { { param1: true, param2: 42 } } # ... params.delete :param1 error = expect { SomeClass.call params }.must_raise ArgumentError expect(error.message).must_match 'Key :param1 not found in {param2: 42}!'
This should be reversible, but see Issue #1.
This will allow us to write an expectation such as
which would have the same effect as