Module: GovukAbTesting

Defined in:
lib/govuk_ab_testing.rb,
lib/govuk_ab_testing/ab_test.rb,
lib/govuk_ab_testing/version.rb,
lib/govuk_ab_testing/configuration.rb,
lib/govuk_ab_testing/rspec_helpers.rb,
lib/govuk_ab_testing/abstract_helpers.rb,
lib/govuk_ab_testing/minitest_helpers.rb,
lib/govuk_ab_testing/rspec_assertions.rb,
lib/govuk_ab_testing/requested_variant.rb,
lib/govuk_ab_testing/minitest_assertions.rb,
lib/govuk_ab_testing/acceptance_tests/capybara.rb,
lib/govuk_ab_testing/acceptance_tests/meta_tag.rb,
lib/govuk_ab_testing/acceptance_tests/active_support.rb

Defined Under Namespace

Modules: AbstractHelpers, AcceptanceTests, MinitestAssertions, MinitestHelpers, RspecAssertions, RspecHelpers Classes: AbTest, Configuration, RequestedVariant

Constant Summary collapse

ANALYTICS_META_TAG_SELECTOR =
"meta[name='govuk:ab-test']".freeze
VERSION =
"3.0.0".freeze

Class Method Summary collapse

Class Method Details

.configurationObject



17
18
19
# File 'lib/govuk_ab_testing.rb', line 17

def self.configuration
  @configuration ||= GovukAbTesting::Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



21
22
23
# File 'lib/govuk_ab_testing.rb', line 21

def self.configure
  yield configuration if block_given?
end