mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
Fix dynamoid specs
This commit is contained in:
parent
0c4a25a8d4
commit
542eeda841
4 changed files with 2 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue