Sha256: 5732e69b26dd2cb5f4fd70749cd78e041433cea8cad7c97f9f4050a42a4fa8c1

Contents?: true

Size: 909 Bytes

Versions: 108

Compression:

Stored size: 909 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
RSpec.configure do |config|
  config.include_context 'Capybara Features', capybara_feature: true if config.respond_to?(:include_context)
end

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

Version data entries

108 entries across 95 versions & 6 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/capybara-3.40.0/lib/capybara/rspec/features.rb
capybara-3.40.0 lib/capybara/rspec/features.rb
capybara-3.39.2 lib/capybara/rspec/features.rb
capybara-3.39.1 lib/capybara/rspec/features.rb
capybara-3.39.0 lib/capybara/rspec/features.rb
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/capybara-3.36.0/lib/capybara/rspec/features.rb
capybara-3.38.0 lib/capybara/rspec/features.rb
tdiary-5.2.3 vendor/bundle/ruby/3.1.0/gems/capybara-3.37.1/lib/capybara/rspec/features.rb
tdiary-5.2.2 vendor/bundle/ruby/3.1.0/gems/capybara-3.37.1/lib/capybara/rspec/features.rb
capybara-3.37.1 lib/capybara/rspec/features.rb
capybara-3.37.0 lib/capybara/rspec/features.rb
tdiary-5.2.1 vendor/bundle/ruby/3.1.0/gems/capybara-3.36.0/lib/capybara/rspec/features.rb
isomorfeus-puppetmaster-0.5.7 lib/isomorfeus/puppetmaster/rspec/features.rb
isomorfeus-puppetmaster-0.5.6 lib/isomorfeus/puppetmaster/rspec/features.rb
tdiary-5.2.0 vendor/bundle/ruby/3.0.0/gems/capybara-3.36.0/lib/capybara/rspec/features.rb
tdiary-5.2.0 vendor/bundle/ruby/2.7.0/gems/capybara-3.35.3/lib/capybara/rspec/features.rb
isomorfeus-puppetmaster-0.5.5 lib/isomorfeus/puppetmaster/rspec/features.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/capybara-3.36.0/lib/capybara/rspec/features.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/capybara-3.36.0/lib/capybara/rspec/features.rb
isomorfeus-puppetmaster-0.5.4 lib/isomorfeus/puppetmaster/rspec/features.rb