spec/lib/shards_spec.rb in connection_manager-1.1.5 vs spec/lib/shards_spec.rb in connection_manager-2.0.0

- old
+ new

@@ -15,11 +15,11 @@ fruit = FactoryGirl.create(:fruit) klasses = ["Fruit","SouthernFruit"] a = Fruit.shards do |shard| shard.where(:id => fruit.id).first end - expect(klasses.include?(a[0].class.name)).to be_true + expect(klasses.include?(a[0].class.name)).to eql(true) end it "should not matter how the where statement is formated" do fruit = FactoryGirl.create(:fruit) @@ -32,9 +32,9 @@ end cfruit = Fruit.shards do |shard| shard.where('id = ?', fruit.id).first end - expect((afruit == bfruit && bfruit == cfruit)).to be_true + expect((afruit == bfruit && bfruit == cfruit)).to eql(true) end end end \ No newline at end of file