Top Level Namespace

Includes:
Capybara::Features

Defined Under Namespace

Modules: Capybara Classes: TestApp

Class Method Summary collapse

Methods included from Capybara::Features

included

Class Method Details

.feature(*args, &block) ⇒ Object



35
36
37
38
39
40
41
42
43
44
# File 'lib/capybara/rspec/features.rb', line 35

def self.feature(*args, &block)
  options = if args.last.is_a?(Hash) then args.pop else {} end
  options[:capybara_feature] = true
  options[:type] = :feature
  options[:caller] ||= caller
  args.push(options)

  #call describe on RSpec in case user has expose_dsl_globally set to false
  RSpec.describe(*args, &block)
end