Sha256: 068e0114a55abcfb3e672c6d949d67d32b7dcc170a56b1ca06668e36416f36d0

Contents?: true

Size: 530 Bytes

Versions: 8

Compression:

Stored size: 530 Bytes

Contents

require 'cucumber/rails/world'

begin
  require 'rspec/rails/matchers'

  [Cucumber::Rails::World, ActionDispatch::Integration::Session].each do |klass|
    klass.class_eval do
      include RSpec::Matchers
    end
  end
rescue LoadError => try_rspec_1
  require 'spec/expectations'
  require 'spec/rails'

  [Cucumber::Rails::World, ActionDispatch::Integration::Session].each do |klass|
    klass.class_eval do
      include Spec::Matchers
      include Spec::Rails::Matchers if defined?(Spec::Rails::Matchers)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cucumber-rails-1.7.0 lib/cucumber/rails/rspec.rb
cucumber-rails-1.6.0 lib/cucumber/rails/rspec.rb
cucumber-rails-1.5.0 lib/cucumber/rails/rspec.rb
cucumber-rails-1.4.5 lib/cucumber/rails/rspec.rb
cucumber-rails-1.4.4 lib/cucumber/rails/rspec.rb
cucumber-rails-1.4.3 lib/cucumber/rails/rspec.rb
cucumber-rails-1.4.2 lib/cucumber/rails/rspec.rb
cucumber-rails-1.4.1 lib/cucumber/rails/rspec.rb