diff --git a/spec/unit/persistence/active_record_persistence_spec.rb b/spec/unit/persistence/active_record_persistence_spec.rb index f9c248b..f1573a8 100644 --- a/spec/unit/persistence/active_record_persistence_spec.rb +++ b/spec/unit/persistence/active_record_persistence_spec.rb @@ -51,7 +51,7 @@ describe "instance methods" do it "should call aasm_ensure_initial_state before create, even if skipping validations" do gate.should_receive(:aasm_ensure_initial_state).and_return(true) - gate.save(validate: false) + gate.save(:validate => false) end it "should not call aasm_ensure_initial_state on validation before update" do