Sha256: dacb73d9fd22d14209eec96c111ec8113d87ace2aafc14dfee2a04db5627d25d

Contents?: true

Size: 599 Bytes

Versions: 20

Compression:

Stored size: 599 Bytes

Contents

class TestTrack::FakeServer
  class << self
    def split_details(name)
      TestTrack::Fake::SplitDetail.new(name).details
    end

    def visitor
      TestTrack::Fake::Visitor.instance
    end

    def visitor_details
      TestTrack::Fake::VisitorDetail.instance
    end

    def assignments
      TestTrack::Fake::Visitor.instance.assignments
    end

    def reset!(seed)
      TestTrack::Fake::Visitor.reset!
      @seed = Integer(seed)
    end

    def seed
      @seed || raise('TestTrack::FakeServer seed not set. Call TestTrack::FakeServer.reset!(seed) to set seed.')
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
test_track_rails_client-7.1.2 app/models/test_track/fake_server.rb
test_track_rails_client-7.1.1 app/models/test_track/fake_server.rb
test_track_rails_client-7.0.0 app/models/test_track/fake_server.rb
test_track_rails_client-6.0.0 app/models/test_track/fake_server.rb
test_track_rails_client-5.0.1 app/models/test_track/fake_server.rb
test_track_rails_client-5.0.0 app/models/test_track/fake_server.rb
test_track_rails_client-4.0.2 app/models/test_track/fake_server.rb
test_track_rails_client-4.0.1 app/models/test_track/fake_server.rb
test_track_rails_client-4.0.0 app/models/test_track/fake_server.rb
test_track_rails_client-4.0.0.rc3 app/models/test_track/fake_server.rb
test_track_rails_client-4.0.0.rc2 app/models/test_track/fake_server.rb
test_track_rails_client-4.0.0.alpha35 app/models/test_track/fake_server.rb
test_track_rails_client-4.0.0.alpha34 app/models/test_track/fake_server.rb
test_track_rails_client-4.0.0.alpha33 app/models/test_track/fake_server.rb
test_track_rails_client-4.0.0.alpha32 app/models/test_track/fake_server.rb
test_track_rails_client-4.0.0.alpha31 app/models/test_track/fake_server.rb
test_track_rails_client-4.0.0.alpha30 app/models/test_track/fake_server.rb
test_track_rails_client-4.0.0.alpha29 app/models/test_track/fake_server.rb
test_track_rails_client-4.0.0.alpha28 app/models/test_track/fake_server.rb
test_track_rails_client-4.0.0.alpha27 app/models/test_track/fake_server.rb