spec/models/queries_spec.rb in ampere-0.1.0 vs spec/models/queries_spec.rb in ampere-0.1.2
- old
+ new
@@ -75,10 +75,10 @@
kitty.first.name.should == "Kitty Paws"
end
it 'should be able to find by two non-indexed fields at once' do
# :breed and :age are not indexed
- Kitty.where(:breed => "Domestic shorthair", :age => "17").count.should == 1
+ Kitty.where(:breed => "Domestic shorthair", :age => 17).count.should == 1
end
it 'should be able to find by a mix of indexed and non-indexed fields' do
# :color is indexed, :breed is not
Kitty.where(:color => "orange").count.should == 2