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