test/enumerable.rb in ohm-2.0.0.alpha4 vs test/enumerable.rb in ohm-2.0.0.alpha5
- old
+ new
@@ -30,10 +30,10 @@
end
end
test "select" do |john, jane|
assert_equal 2, Contact.all.count
- assert_equal [john], Contact.all.select { |c| c.id == john.id }
+ assert_equal [john], Contact.all.select { |c| c.id.to_s == john.id.to_s }
end
end
scope do
class Comment < Ohm::Model