Sha256: c1c00eca7514acb46eecd83d568ffe7e34c17d03c5e3a82cc701e60b081b5fdb

Contents?: true

Size: 370 Bytes

Versions: 8

Compression:

Stored size: 370 Bytes

Contents

require 'spec_helper'

describe Staccato do

  context 'configuring a tracker' do

    let(:tracker) {Staccato.tracker 'UA-XXXX-Y'}

    it 'has an assigned id' do
      tracker.id.should eq('UA-XXXX-Y')
    end

    it 'uses a uuid for the client_id' do
      SecureRandom.stubs(:uuid).returns("a-uuid")

      tracker.client_id.should eq('a-uuid')
    end

  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
staccato-0.2.1 spec/lib/stacatto_spec.rb
staccato-0.2.0 spec/lib/stacatto_spec.rb
staccato-0.1.1 spec/lib/stacatto_spec.rb
staccato-0.1.0 spec/lib/stacatto_spec.rb
staccato-0.0.4 spec/lib/stacatto_spec.rb
staccato-0.0.3 spec/lib/stacatto_spec.rb
staccato-0.0.2 spec/lib/stacatto_spec.rb
staccato-0.0.1 spec/lib/stacatto_spec.rb