1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00

Fix dynamoid specs

This commit is contained in:
Aryk Grosz 2017-06-13 15:49:02 -07:00 committed by Anil Kumar Maurya
parent 0c4a25a8d4
commit 542eeda841
4 changed files with 2 additions and 10 deletions

View file

@ -64,10 +64,6 @@ module AASM
raise ActiveRecord::RecordInvalid.new(self)
end
def aasm_new_record?
new_record?
end
def aasm_save
self.save
end

View file

@ -42,7 +42,7 @@ module AASM
end
def aasm_new_record?
raise("Define #aasm_new_record? in the AASM Persistence class.")
new_record?
end
module ClassMethods

View file

@ -58,10 +58,6 @@ module AASM
self.save
end
def aasm_new_record?
new_record?
end
def aasm_raise_invalid_record
raise Mongoid::Errors::Validations.new(self)
end

View file

@ -1,7 +1,7 @@
require 'spec_helper'
if defined?(Sequel)
describe 'sequel' do
Dir[File.dirname(__FILE__) + "/../../models/sequel/*.rb"].sort.each do |f|
require File.expand_path(f)
end