Class: TestTrack::FakeServer

Inherits:
Object
  • Object
show all
Defined in:
app/models/test_track/fake_server.rb

Class Method Summary collapse

Class Method Details

.assignmentsObject



15
16
17
# File 'app/models/test_track/fake_server.rb', line 15

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

.reset!(seed) ⇒ Object



19
20
21
22
# File 'app/models/test_track/fake_server.rb', line 19

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

.seedObject



24
25
26
# File 'app/models/test_track/fake_server.rb', line 24

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

.split_details(name) ⇒ Object



3
4
5
# File 'app/models/test_track/fake_server.rb', line 3

def split_details(name)
  TestTrack::Fake::SplitDetail.new(name).details
end

.visitorObject



7
8
9
# File 'app/models/test_track/fake_server.rb', line 7

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

.visitor_detailsObject



11
12
13
# File 'app/models/test_track/fake_server.rb', line 11

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