Sha256: 5272d5d2fce5d7b26c0a264a674f2ef447bf9341a77433db0a9af5c49c02de1b

Contents?: true

Size: 674 Bytes

Versions: 2

Compression:

Stored size: 674 Bytes

Contents

require 'spec_helper'

describe Trackerific do
  describe "#configuration" do
    subject { Trackerific.configuration }
    it { should eq Trackerific::Configuration.config }
  end

  describe "#configure" do
    it "should delegate to Trackerific::Configuration.configure" do
      Trackerific.configure {|config| config.this = :value }
      Trackerific.configuration.this.should eq :value
    end
  end

  describe "#track" do
    it "should return an Array of Trackerific::Details" do
      results = Trackerific.track("TEST")
      results.should be_a Array
      results.count.should eq 2
      results.all? {|r| r.should be_a Trackerific::Details }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
trackerific-0.7.1 spec/lib/trackerific_spec.rb
trackerific-0.7.0 spec/lib/trackerific_spec.rb