Sha256: e792cdbba5576f8003affed0774f0fc4f82ee49fe02bfb4dcb1af38c677ff8e3
Contents?: true
Size: 325 Bytes
Versions: 2
Compression:
Stored size: 325 Bytes
Contents
require 'test_helper' class StreamTest < ActiveSupport::TestCase should "find streams given certain seconds ago" do Timecop.freeze(40.seconds.ago) { Stream.create :started_at => Time.now } Timecop.freeze(10.seconds.ago) { Stream.create :started_at => Time.now } assert_equal Stream.ago("30").count, 1 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
streamit-0.0.8 | test/stream_test.rb |
streamit-0.0.7 | test/stream_test.rb |