Sha256: 3f9303456ba62df1cf037e9281d7e5c849c3911cd81c34b4a34077e10cb40fc0

Contents?: true

Size: 332 Bytes

Versions: 6

Compression:

Stored size: 332 Bytes

Contents

require 'spec_helper'

describe Metric do
  it "passes through options to track" do
    Metric::Track.should_receive(:track).with("hits", {})
    Metric.track("hits")
  end

  it "passes through options to receive" do
    Metric::Receive.should_receive(:receive).with("hits", "total")
    Metric.receive("hits", "total")
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
metric-0.1.2 spec/metric_spec.rb
metric-0.1.1 spec/metric_spec.rb
metric-0.1.0 spec/metric_spec.rb
metric-0.0.9 spec/metric_spec.rb
metric-0.0.8 spec/metric_spec.rb
metric-0.0.7 spec/metric_spec.rb