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



12
13
14
15
16
17
18
19
20
# File 'lib/capybara/rspec/features.rb', line 12

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

  describe(*args, &block)
end