Sha256: 8878271a8e5f7cbe32435fe1e4968d827a5f4bd6bd1eb4da2f14a31ffe8e9bd2

Contents?: true

Size: 948 Bytes

Versions: 11

Compression:

Stored size: 948 Bytes

Contents

# frozen_string_literal: true

RSpec.shared_context "Capybara Features", capybara_feature: true do
  instance_eval do
    alias background before
    alias given let
    alias given! let!
  end
end

# ensure shared_context is included if default shared_context_metadata_behavior is changed
if RSpec::Core::Version::STRING.to_f >= 3.5
  RSpec.configure do |config|
    config.include_context "Capybara Features", capybara_feature: true
  end
end

RSpec.configure do |config|
  config.alias_example_group_to :feature, capybara_feature: true, type: :feature
  config.alias_example_group_to :xfeature, capybara_feature: true, type: :feature, skip: "Temporarily disabled with xfeature"
  config.alias_example_group_to :ffeature, capybara_feature: true, type: :feature, focus: true
  config.alias_example_to :scenario
  config.alias_example_to :xscenario, skip: "Temporarily disabled with xscenario"
  config.alias_example_to :fscenario, focus: true
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
tdiary-5.0.9 vendor/bundle/gems/capybara-3.2.1/lib/capybara/rspec/features.rb
capybara-3.2.1 lib/capybara/rspec/features.rb
capybara-3.2.0 lib/capybara/rspec/features.rb
capybara-3.1.1 lib/capybara/rspec/features.rb
capybara-3.1.0 lib/capybara/rspec/features.rb
capybara-3.0.3 lib/capybara/rspec/features.rb
capybara-3.0.2 lib/capybara/rspec/features.rb
capybara-3.0.1 lib/capybara/rspec/features.rb
capybara-3.0.0 lib/capybara/rspec/features.rb
capybara-3.0.0.rc2 lib/capybara/rspec/features.rb
capybara-3.0.0.rc1 lib/capybara/rspec/features.rb