spec/metric/track_spec.rb in metric-0.0.6 vs spec/metric/track_spec.rb in metric-0.0.7

- old
+ new

@@ -1,16 +1,13 @@ require 'spec_helper' describe Metric::Track do - before do - reset_config - end - it "composes the request url" do Metric::Track.compose("hits").should == "http://api.metric.io/track?api_key=spec&metric=hits" end it "gets correct url when tracking" do + Metric::Track.should_receive(:quit_early?).and_return(false) Metric::Track.should_receive(:compose).with("hits", {}) Metric::Track.track("hits") end it "encodes the request url" do