Sha256: 122e3d5129396c08e776f0c5e38390cddf60eebd449620da25b91098c4224198
Contents?: true
Size: 1.07 KB
Versions: 11
Compression:
Stored size: 1.07 KB
Contents
class TestTrack::Remote::SplitDetail include TestTrack::RemoteModel collection_path 'api/v1/split_details' attributes :name, :hypothesis, :assignment_criteria, :description, :owner, :location, :platform, :variant_details def self.from_name(name) # TODO: FakeableHer needs to make this faking a feature of `get` if faked? new(fake_instance_attributes(name)) else get("api/v1/split_details/#{name}") end end def self.fake_instance_attributes(name) { name: name, hypothesis: "fake hypothesis", assignment_criteria: "fake criteria for everyone", description: "fake but still good description", owner: "fake owner", location: "fake activity", platform: "mobile", variant_details: fake_variant_details } end def self.fake_variant_details [ { name: "fake first variant detail", description: "There are FAQ links in a sidebar" }, { name: "fake second variant detail", description: "There are FAQ links in the default footer" } ] end end
Version data entries
11 entries across 11 versions & 1 rubygems