spec/entry_spec.rb in appstats-0.11.6 vs spec/entry_spec.rb in appstats-0.11.7

- old
+ new

@@ -186,21 +186,21 @@ entry.raw_entry.should == "blah" entry.occurred_at.should == nil end it "should understand an entry without contexts" do - entry = Entry.create_from_logger_string("0.11.6 setup[:,=,-n] 2010-09-21 23:15:20 action=address_search") + entry = Entry.create_from_logger_string("0.11.7 setup[:,=,-n] 2010-09-21 23:15:20 action=address_search") Entry.count.should == @before_count + 1 entry.action.should == "address_search" - entry.raw_entry.should == "0.11.6 setup[:,=,-n] 2010-09-21 23:15:20 action=address_search" + entry.raw_entry.should == "0.11.7 setup[:,=,-n] 2010-09-21 23:15:20 action=address_search" entry.occurred_at.should == Time.parse("2010-09-21 23:15:20") end it "should understand contexts" do - entry = Entry.create_from_logger_string("0.11.6 setup[:,=,-n] 2010-09-21 23:15:20 action=address_filter : app_name=Market : server=Live") + entry = Entry.create_from_logger_string("0.11.7 setup[:,=,-n] 2010-09-21 23:15:20 action=address_filter : app_name=Market : server=Live") Entry.count.should == @before_count + 1 entry.action.should == "address_filter" - entry.raw_entry.should == "0.11.6 setup[:,=,-n] 2010-09-21 23:15:20 action=address_filter : app_name=Market : server=Live" + entry.raw_entry.should == "0.11.7 setup[:,=,-n] 2010-09-21 23:15:20 action=address_filter : app_name=Market : server=Live" entry.occurred_at.should == Time.parse("2010-09-21 23:15:20") entry.contexts.size.should == 2 entry.contexts[0].context_key = "app_name" entry.contexts[0].context_value = "Market" entry.contexts[1].context_key = "server" \ No newline at end of file