Sha256: b76f410d6bbc5fe3806f61a241cb8a64b72dfbdaaa415a78d3b635ea5d692030
Contents?: true
Size: 1.1 KB
Versions: 2
Compression:
Stored size: 1.1 KB
Contents
require "bbq/core" require "bbq/core/test_user" require "bbq/rspec/version" require "bbq/rspec/matchers" require "rspec/core" require "capybara/rspec/matchers" module Bbq module RSpec module Feature def self.included(base) base.metadata[:type] = :acceptance base.metadata[:caller] = caller base.instance_eval do alias :background :before alias :scenario :it alias :feature :describe end end end ::RSpec.configure do |config| if Gem::Version.new(::RSpec::Core::Version::STRING) >= Gem::Version.new('2.99') config.include Feature, :type => :acceptance, :file_path => %r{spec/acceptance} else config.include Feature, :type => :acceptance, :example_group => {:file_path => %r{spec/acceptance}} end config.include Matchers config.after :each, :type => :acceptance do ::Bbq::Core::Session.pool.release end end end module Core class TestUser include Capybara::RSpecMatchers include ::Bbq::RSpec::Matchers include ::RSpec::Matchers end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bbq-rspec-0.4.0 | lib/bbq/rspec.rb |
bbq-rspec-0.3.0 | lib/bbq/rspec.rb |