Sha256: 8346f4df91a337754d546985851fb65008f276e0de0488a8113d7d6156851db4
Contents?: true
Size: 616 Bytes
Versions: 4
Compression:
Stored size: 616 Bytes
Contents
require 'test_helper' class LocaljobTest < LocaljobTestCase def setup @localjob = queue end def test_push_should_put_a_job_in_queue @localjob << WalrusJob.new("move") assert_equal 1, @localjob.size end def test_pop_from_queue @localjob << WalrusJob.new("move") job = @localjob.shift assert_instance_of WalrusJob, job assert_equal "move", job.action end def test_handles_multiple_queues @localjob << WalrusJob.new("move") other = queue(0xDEADCAFE) other << WalrusJob.new("dance") assert_equal 1, @localjob.size assert_equal 1, other.size end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
localjob-0.4.1 | test/localjob_test.rb |
localjob-0.4.0 | test/localjob_test.rb |
localjob-0.3.0 | test/localjob_test.rb |
localjob-0.2.0 | test/localjob_test.rb |