try/30_timingbelt_try.rb in bluth-0.7.0 vs try/30_timingbelt_try.rb in bluth-0.7.2
- old
+ new
@@ -7,15 +7,15 @@
@now = Time.at(1297641600).utc # 2011-02-14 20:00:00
Bluth::TimingBelt.redis.flushdb
## Knows now
Bluth::TimingBelt.now(0, @now).to_s
-#=> '2011-02-14 00:00:00 UTC'
+#=> RUBY_VERSION <= '1.9' ? 'Mon Feb 14 00:00:00 UTC 2011' : '2011-02-14 00:00:00 UTC'
## Now can have an offset
Bluth::TimingBelt.now(5, @now).to_s
-#=> '2011-02-14 00:05:00 UTC'
+#=> RUBY_VERSION <= '1.9' ? 'Mon Feb 14 00:05:00 UTC 2011' : '2011-02-14 00:05:00 UTC'
## Can create a timestamp
Bluth::TimingBelt.stamp 0, @now
#=> '00:00'
@@ -92,10 +92,9 @@
#=> 'bluth:timingbelt:00:10'
## Can calculate the difference between two notches
notch1 = Bluth::TimingBelt.notch
notch2 = Bluth::TimingBelt.notch 67
-puts notch2.name
notch2 - notch1
#=> 67
## A notch has an associated queue
notch = Bluth::TimingBelt.notch(0, nil, @now)