Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Limit strong_parameters tests to ActiveModel 3.2

  • Loading branch information...
commit adcb70032ba22057872982ee84287e6303da747a 1 parent be8d08a
@cgriego authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/functional/active_attr/mass_assignment_security_spec.rb
View
4 spec/functional/active_attr/mass_assignment_security_spec.rb
@@ -4,11 +4,11 @@
module ActiveAttr
describe MassAssignmentSecurity, :mass_assignment do
context "integrating with strong_parameters", :active_model_version => "~> 3.2.0" do
- require "strong_parameters"
-
subject { model_class }
before do
+ require "strong_parameters"
+
model_class.class_eval do
include ActiveAttr::MassAssignmentSecurity
include ActiveModel::ForbiddenAttributesProtection
Please sign in to comment.
Something went wrong with that request. Please try again.