Permalink
Browse files

api_spec: fixed ruby 1.8.7 incompatibility issues

  • Loading branch information...
asmuth committed May 4, 2012
1 parent b0c3cd4 commit 5639a1a714d128df29f5f7120ff33d4cdd599db0
Showing with 3 additions and 3 deletions.
  1. +3 −3 spec/api_spec.rb
View
@@ -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
@@ -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
@@ -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

0 comments on commit 5639a1a

Please sign in to comment.