Skip to content

Commit

Permalink
api_spec: fixed ruby 1.8.7 incompatibility issues
Browse files Browse the repository at this point in the history
  • Loading branch information
asmuth committed May 4, 2012
1 parent b0c3cd4 commit 5639a1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/api_spec.rb
Expand Up @@ -17,7 +17,7 @@
:redis_prefix => "fnordmetric-test",
:redis => @redis
}
@api = API.new @opts
@api = FnordMetric::API.new @opts
end

describe "creating events using API" do
Expand All @@ -32,7 +32,7 @@
:_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

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

Expand Down

0 comments on commit 5639a1a

Please sign in to comment.