spec/weeler/action_controller/acts/restful_spec.rb in weeler-1.0.4 vs spec/weeler/action_controller/acts/restful_spec.rb in weeler-1.1.0
- old
+ new
@@ -134,10 +134,10 @@
end
end
context "permited all with block" do
controller Weeler::FoosController do
- acts_as_restful Post, permit_params: -> (params) { params.require(:post).permit! }
+ acts_as_restful Post, permit_params: lambda { |params| params.require(:post).permit! }
end
describe "actions" do
describe "POST #create" do
it "sets only permited params" do