Permalink
Browse files

Limit strong_parameters tests to ActiveModel 3.2

  • Loading branch information...
1 parent be8d08a commit adcb70032ba22057872982ee84287e6303da747a @cgriego committed Jul 30, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 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

0 comments on commit adcb700

Please sign in to comment.