Merge branch 'patch-1' of https://github.com/esposito/database_cleaner into esposito-patch-1

This commit is contained in:
Ernesto Tagwerker 2017-05-17 16:22:25 -04:00
commit 1d3af8bf28
2 changed files with 7 additions and 0 deletions

View file

@ -77,6 +77,7 @@ module DatabaseCleaner
def establish_connection def establish_connection
::ActiveRecord::Base.establish_connection(connection_hash) ::ActiveRecord::Base.establish_connection(connection_hash)
::ActiveRecord::Base
end end
end end

View file

@ -181,6 +181,12 @@ my_db:
subject.connection_class subject.connection_class
end end
it "returns the connection class" do
::ActiveRecord::Base.stub(:establish_connection)
subject.connection_class.should eq ::ActiveRecord::Base
end
end end
end end
end end