Class: RSpec::Core::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/core/example_group_patch.rb

Overview

Monkey patch rspec to block capybara from using feature

Instance Method Summary collapse

Instance Method Details

#alias_example_group_to(new_name, *args) ⇒ Object



12
13
14
15
16
# File 'lib/rspec/core/example_group_patch.rb', line 12

def alias_example_group_to(new_name, *args)
  return if [:feature, :xfeature, :ffeature].include?(new_name)

  orig_alias_example_group_to(new_name, *args)
end

#orig_alias_example_group_toObject



10
# File 'lib/rspec/core/example_group_patch.rb', line 10

alias orig_alias_example_group_to alias_example_group_to