spec/lib/using_spec.rb in connection_manager-0.3.9 vs spec/lib/using_spec.rb in connection_manager-0.3.10

- old
+ new

@@ -20,12 +20,12 @@ it "should change the connection" do Fruit.using("CmFooSlaveConnection").connection.config.should_not eql(Fruit.connection.config) end it "should create the exact same sql if called from model or from relation" #do -# Fruit.where(:name => "malarky").using("CmFooSlaveConnection").to_sql.should eql( -# Fruit.using("CmFooSlaveConnection").where(:name => "malarky").to_sql) -# end + #Fruit.where(:name => "malarky").using("CmFooSlaveConnection").to_sql.should eql( + #Fruit.using("CmFooSlaveConnection").where(:name => "malarky").to_sql) + #end it "should have the same connection if called from model or from relation" do Fruit.where(:name => "malarky").using("CmFooSlaveConnection").connection.config.should eql( Fruit.using("CmFooSlaveConnection").where(:name => "malarky").connection.config) Fruit.using("CmFooSlaveConnection").where(:name => "malarky").connection.config.should_not eql(