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

+ (Object) feature(*args, &block)



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

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