add assert_count helper method

parent 833edf61
......@@ -7,4 +7,9 @@ class ActiveSupport::TestCase
fixtures :all
# Add more helper methods to be used by all tests here...
def assert_count(expected, actual = 0)
assert_equal expected.to_i, actual.count
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment