spec/app_spec.rb in fnordmetric-0.5.4 vs spec/app_spec.rb in fnordmetric-0.5.5

- old
+ new

@@ -369,47 +369,19 @@ end describe "events api: creating events" do - it "should track an event without auth" do - pending("fix this") - #post "/events", :type => "myevent", :fnord => "foobar" - #last_response.status.should == 200 - #FnordMetric::Event.last.type.should == "myevent" - #FnordMetric::Event.last.fnord.should == "foobar" + it "should track an event without auth" do + post "/events", :_type => "myevent", :fnord => "foobar" + last_response.status.should == 200 end it "should return 400 if no type is provided" do pending("fix this") - #post "/events", :fnord => "foobar" - #last_response.status.should == 400 - #last_response.body.should == "please specify the event_type" - end - - it "should track an event in the past" do - pending("fix this") - #my_time = (Time.now-3.years).to_i - #post "/events", :type => "myevent", :time => my_time - #last_response.status.should == 200 - #FnordMetric::Event.last.type.should == "myevent" - #FnordMetric::Event.last.time.should == my_time - end - - it "should track an event with integer data" do - pending("fix this") - #post "/events", :type => "myevent", :blubb => "123" - #last_response.status.should == 200 - #FnordMetric::Event.last.type.should == "myevent" - #FnordMetric::Event.last.blubb.should == 123 - end - - it "should track an event with float data" do - pending("fix this") - #post "/events", :type => "myevent", :blubb => "42.23" - #last_response.status.should == 200 - #FnordMetric::Event.last.type.should == "myevent" - #FnordMetric::Event.last.blubb.should == 42.23 + post "/events", :fnord => "foobar" + last_response.status.should == 400 + last_response.body.should == "please specify the event_type" end end describe "gauges api" do \ No newline at end of file