Sha256: f73f603b4839e0d11409f5a501e18d8f3835d26c02b526e7aaceb2af14239eba

Contents?: true

Size: 731 Bytes

Versions: 4

Compression:

Stored size: 731 Bytes

Contents

shared_context :sitehub_json do
  let(:sitehub_json) do
    {
      proxies: [proxy_1, proxy_2]
    }
  end

  let(:proxy_1) do
    {
      path: '/route_1',
      sitehub_cookie_path: 'route_1_cookie_path',
      routes: [route_1]
    }
  end

  let(:proxy_2) do
    {
      path: '/route_1',
      sitehub_cookie_path: 'route_1_cookie_path',
      splits: [split_1, split_2]
    }
  end

  let(:route_1) do
    {
      label: :route_label_1,
      url: 'http://lvl-up.uk/'
    }
  end

  let(:split_1) do
    {
      label: :split_label_1,
      url: 'http://lvl-up.uk/',
      percentage: 50
    }
  end

  let(:split_2) do
    {
      label: :split_label_2,
      url: 'http://lvl-up.uk/',
      percentage: 50
    }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sitehub-0.5.0.alpha5 spec/support/shared_examples/sitehub_json_context.rb
sitehub-0.5.0.alpha4 spec/support/shared_examples/sitehub_json_context.rb
sitehub-0.5.0.alpha3 spec/support/shared_examples/sitehub_json_context.rb
sitehub-0.5.0.alpha2 spec/support/shared_examples/sitehub_json_context.rb