spec/session_spec.rb in fnordmetric-0.5.9 vs spec/session_spec.rb in fnordmetric-0.6.0
- old
+ new
@@ -210,12 +210,12 @@
sesshash = create_session("sess923", @now, {})
@redis_wrap.zadd("#{@namespace}-session-#{sesshash}-events", @now, "shmoo")
@redis_wrap.zadd("#{@namespace}-session-#{sesshash}-events", @now, "fnord")
sess = Session.find(sesshash, @opts)
sess.fetch_event_ids!
- sess.event_ids[0].should == "fnord"
- sess.event_ids[1].should == "shmoo"
+ sess.event_ids.should include("shmoo")
+ sess.event_ids.should include("fnord")
end
def create_session(sesskey, sesstime, sessdata)
Digest::MD5.hexdigest(sesskey).tap do |sesshash|
@redis_wrap.zadd("#{@namespace}-session", sesstime, sesshash)
@@ -226,6 +226,6 @@
end
end
-end
\ No newline at end of file
+end