Sha256: 1beb15accf1f794e56dca46d1b6d00eb1249fb616b2bfcd434fbe9ed7c79e93c

Contents?: true

Size: 497 Bytes

Versions: 24

Compression:

Stored size: 497 Bytes

Contents

module Capybara
  module Features
    def self.included(base)
      base.instance_eval do
        alias :background :before
        alias :scenario :it
      end
    end
  end
end

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

RSpec.configuration.include Capybara::Features, :capybara_feature => true

Version data entries

24 entries across 24 versions & 5 rubygems

Version Path
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/capybara-1.1.4/lib/capybara/rspec/features.rb
capybara-1.1.4 lib/capybara/rspec/features.rb
capybara-1.1.3 lib/capybara/rspec/features.rb
capybara-2.0.0.beta2 lib/capybara/rspec/features.rb
nimboids-capybara-1.1.2 lib/capybara/rspec/features.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/capybara-1.1.2/lib/capybara/rspec/features.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/capybara-1.1.2/lib/capybara/rspec/features.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/capybara-1.1.2/lib/capybara/rspec/features.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/capybara-1.1.2/lib/capybara/rspec/features.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/capybara-1.1.2/lib/capybara/rspec/features.rb
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/capybara-1.1.2/lib/capybara/rspec/features.rb
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/capybara-1.1.2/lib/capybara/rspec/features.rb
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/capybara-1.1.2/lib/capybara/rspec/features.rb
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/capybara-1.1.2/lib/capybara/rspec/features.rb
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/capybara-1.1.2/lib/capybara/rspec/features.rb
bbc-capybara-1.1.2 lib/capybara/rspec/features.rb
capybara-1.1.2 lib/capybara/rspec/features.rb
capybara-1.1.1 lib/capybara/rspec/features.rb
capybara-1.1.0 lib/capybara/rspec/features.rb
capybara-1.1.0.rc1 lib/capybara/rspec/features.rb