RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: ncherro
I renamed my :allow and :allow_params matchers to :permit and :permit_params to get past this error.
:allow
:allow_params
:permit
:permit_params
Here's my spec/support/matchers.rb file.
And my specs look like this (should permit(... instead of should allow(...)
should permit(...
should allow(...
it "allows anything" do should permit(:any, :thing) should permit_param(:any, :thing) end
I renamed my
:allow
and:allow_params
matchers to:permit
and:permit_params
to get past this error.Here's my spec/support/matchers.rb file.
And my specs look like this (
should permit(...
instead ofshould allow(...
)