Sha256: e7391c94b508028f0fbd118a189286bcb59f69ffff87a7d27932916c8a0e7d5d

Contents?: true

Size: 391 Bytes

Versions: 5

Compression:

Stored size: 391 Bytes

Contents

# Encoding: utf-8

module ChemistryKit
  module SplitTesting
    class OptimizelyProvider

      attr_reader :config

      def initialize(config)
        @config = config
      end

      def split(driver)
        driver.get config.base_url
        driver.manage.add_cookie(name: 'optimizelyOptOut', value: config.opt_out?.to_s)
        driver.navigate.refresh
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
chemistrykit-3.10.1 lib/chemistrykit/split_testing/optimizely_provider.rb
chemistrykit-3.10.0 lib/chemistrykit/split_testing/optimizely_provider.rb
chemistrykit-3.9.1 lib/chemistrykit/split_testing/optimizely_provider.rb
chemistrykit-3.9.0 lib/chemistrykit/split_testing/optimizely_provider.rb
chemistrykit-3.9.0.rc3 lib/chemistrykit/split_testing/optimizely_provider.rb