mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
Extend activerecord base spec
This commit is contained in:
parent
ccc0165ed7
commit
d5610b5794
1 changed files with 6 additions and 0 deletions
|
@ -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