Sha256: b903556c6bb6671c54caeb579f125f4add4646c9862f9385332e7f42f45ff83e
Contents?: true
Size: 818 Bytes
Versions: 12
Compression:
Stored size: 818 Bytes
Contents
require 'test_helper' class PoolTest < ActiveSupport::TestCase test "new pool is not completed" do p = Pool.new assert !p.completed?, "new pool should not be completed" end test "new pool does not have teams set" do p = Pool.new assert !p.teams_set?, "new pool should not have teams set" end test "pool that has not started is accepting entries" do p = Pool.new p.teams = [Team.new] * 64 p.starts_at = Time.now + 2.days assert p.accepting_entries?, "Pool with all teams that starts in future should except entries" end test "pool that has started is not accepting entries" do p = Pool.new p.teams = [Team.new] * 64 p.starts_at = Time.now - 2.days assert !p.accepting_entries?, "Pool with all teams that starts in past should not except entries" end end
Version data entries
12 entries across 12 versions & 1 rubygems