diff --git a/spec/unit/persistence/active_record_persistence_spec.rb b/spec/unit/persistence/active_record_persistence_spec.rb index 7c43298..a696d10 100644 --- a/spec/unit/persistence/active_record_persistence_spec.rb +++ b/spec/unit/persistence/active_record_persistence_spec.rb @@ -257,7 +257,7 @@ describe "instance methods" do end -unless ActiveRecord.version.to_s >= '4.2' # won't work with Rails >= 4.2 +if ActiveRecord::VERSION::MAJOR < 4 && ActiveRecord::VERSION::MINOR < 2 # won't work with Rails >= 4.2 describe "direct state column access" do it "accepts false states" do f = FalseState.create!