Extend activerecord base spec

This commit is contained in:
Samuel Esposito 2017-04-21 09:28:04 +02:00
parent ccc0165ed7
commit d5610b5794

View file

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