Fixed the tests... I guess Hash literals aren't ok.

This commit is contained in:
Parker Moore 2014-01-03 21:22:55 -08:00
parent b4383a5c42
commit a5f1bc0341
1 changed files with 3 additions and 3 deletions

View File

@ -138,12 +138,12 @@ class TestFilters < Test::Unit::TestCase
end end
context "where filter" do context "where filter" do
should "return the object if it's not an array" do should "return any input that is not an array" do
assert_equal {}, @filter.where({}, nil, nil) assert_equal Hash.new, @filter.where(Hash.new, nil, nil)
assert_equal "some string", @filter.where("some string", "la", "le") assert_equal "some string", @filter.where("some string", "la", "le")
end end
should "properly filter the objects" do should "filter objects appropriately" do
assert_equal 2, @filter.where(@array_of_objects, "color", "red").length assert_equal 2, @filter.where(@array_of_objects, "color", "red").length
end end
end end