mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
Merge branch 'patch-1' of https://github.com/esposito/database_cleaner into esposito-patch-1
This commit is contained in:
commit
1d3af8bf28
2 changed files with 7 additions and 0 deletions
|
@ -77,6 +77,7 @@ module DatabaseCleaner
|
|||
|
||||
def establish_connection
|
||||
::ActiveRecord::Base.establish_connection(connection_hash)
|
||||
::ActiveRecord::Base
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -181,6 +181,12 @@ my_db:
|
|||
|
||||
subject.connection_class
|
||||
end
|
||||
|
||||
it "returns the connection class" do
|
||||
::ActiveRecord::Base.stub(:establish_connection)
|
||||
|
||||
subject.connection_class.should eq ::ActiveRecord::Base
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue