fixed tests

This commit is contained in:
albert
2011-10-22 19:01:27 -04:00
parent 5444ad5107
commit 0de90d487b
10 changed files with 19 additions and 24 deletions

View File

@@ -15,11 +15,11 @@ class PoolTest < ActiveSupport::TestCase
context "A name" do
setup do
@pool = Factory.create(:pool)
@pool = Factory.create(:pool, :name => "xxx")
end
should "be mapped to a pool id" do
assert_equal(@pool.id, Pool.name_to_id(@pool.name))
assert_equal(@pool.id, Pool.name_to_id("xxx"))
end
end