Skip to content

Commit

Permalink
Fix dynamoid specs
Browse files Browse the repository at this point in the history
  • Loading branch information
Aryk authored and Anil Kumar Maurya committed Jul 7, 2017
1 parent 0c4a25a commit 542eeda
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
4 changes: 0 additions & 4 deletions lib/aasm/persistence/active_record_persistence.rb
Expand Up @@ -64,10 +64,6 @@ def aasm_raise_invalid_record
raise ActiveRecord::RecordInvalid.new(self)
end

def aasm_new_record?
new_record?
end

def aasm_save
self.save
end
Expand Down
2 changes: 1 addition & 1 deletion lib/aasm/persistence/base.rb
Expand Up @@ -42,7 +42,7 @@ def aasm_read_state(name=:default)
end

def aasm_new_record?
raise("Define #aasm_new_record? in the AASM Persistence class.")
new_record?
end

module ClassMethods
Expand Down
4 changes: 0 additions & 4 deletions lib/aasm/persistence/mongoid_persistence.rb
Expand Up @@ -58,10 +58,6 @@ def aasm_save
self.save
end

def aasm_new_record?
new_record?
end

def aasm_raise_invalid_record
raise Mongoid::Errors::Validations.new(self)
end
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/persistence/sequel_persistence_spec.rb
@@ -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
Expand Down

0 comments on commit 542eeda

Please sign in to comment.