Commit 5639a1a7 authored by Paul Asmuth's avatar Paul Asmuth
Browse files

api_spec: fixed ruby 1.8.7 incompatibility issues

parent b0c3cd49
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ describe FnordMetric::Event do
      :redis_prefix => "fnordmetric-test",
      :redis => @redis
    }  
    @api = API.new @opts
    @api = FnordMetric::API.new @opts
  end

  describe "creating events using API" do
@@ -32,7 +32,7 @@ describe FnordMetric::Event do
        :_time => @now
      }.to_json
      event_id = @api.event(json_string)
      event = Event.find(event_id, @opts)
      event = FnordMetric::Event.find(event_id, @opts)
      event.type.should == "Fn0rd123"
    end

@@ -41,7 +41,7 @@ describe FnordMetric::Event do
        :_type => "Fn0rd234", 
        :_time => @now
      )
      event = Event.find(event_id, @opts)
      event = FnordMetric::Event.find(event_id, @opts)
      event.type.should == "Fn0rd234"
    end