Skip to content

Commit

Permalink
and removed usage of connection mock
Browse files Browse the repository at this point in the history
  • Loading branch information
alto committed Sep 2, 2011
1 parent d8ab2c4 commit 6e820de
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions spec/unit/i18n_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@

ActiveRecord::Base.logger = Logger.new(STDERR)

class Connection
end

class I18nTestModel < ActiveRecord::Base
include AASM

Expand All @@ -29,11 +26,6 @@ class I18nTestModel < ActiveRecord::Base

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

Expand Down

0 comments on commit 6e820de

Please sign in to comment.