mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
and removed usage of connection mock
This commit is contained in:
parent
d8ab2c4063
commit
6e820dee0a
1 changed files with 0 additions and 8 deletions
|
@ -5,9 +5,6 @@ require 'i18n'
|
|||
|
||||
ActiveRecord::Base.logger = Logger.new(STDERR)
|
||||
|
||||
class Connection
|
||||
end
|
||||
|
||||
class I18nTestModel < ActiveRecord::Base
|
||||
include AASM
|
||||
|
||||
|
@ -29,11 +26,6 @@ describe AASM::I18n do
|
|||
|
||||
after(:all) { I18n.load_path.clear }
|
||||
|
||||
before do
|
||||
connection = mock(Connection, :columns => [])
|
||||
I18nTestModel.stub!(:connection).and_return(connection)
|
||||
end
|
||||
|
||||
let (:foo_opened) { I18nTestModel.new }
|
||||
let (:foo_closed) { I18nTestModel.new.tap { |x| x.aasm_state = :closed } }
|
||||
|
||||
|
|
Loading…
Reference in a new issue