1
0
Fork 0
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:
Thorsten Böttger 2011-09-02 18:47:23 +02:00
parent d8ab2c4063
commit 6e820dee0a

View file

@ -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 } }