Sha256: 8c78ac0f54f8db7df5ef3a51e2808296d78f66f22688fbe7a7dbace009f63805

Contents?: true

Size: 534 Bytes

Versions: 21

Compression:

Stored size: 534 Bytes

Contents

require 'cucumber/rails/world'

begin
  require 'rspec/rails/matchers'

  [Cucumber::Rails::World, ActionController::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, ActionController::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

21 entries across 21 versions & 2 rubygems

Version Path
cucumber-rails-1.4.0 lib/cucumber/rails/rspec.rb
cucumber-rails-1.3.1 lib/cucumber/rails/rspec.rb
casecumber-rails-1.0.2.1 lib/cucumber/rails/rspec.rb
cucumber-rails-1.3.0 lib/cucumber/rails/rspec.rb
cucumber-rails-1.2.1 lib/cucumber/rails/rspec.rb
cucumber-rails-1.2.0 lib/cucumber/rails/rspec.rb
cucumber-rails-1.1.1 lib/cucumber/rails/rspec.rb
cucumber-rails-1.1.0 lib/cucumber/rails/rspec.rb
cucumber-rails-1.0.6 lib/cucumber/rails/rspec.rb
cucumber-rails-1.0.5 lib/cucumber/rails/rspec.rb
cucumber-rails-1.0.4 lib/cucumber/rails/rspec.rb
cucumber-rails-1.0.3 lib/cucumber/rails/rspec.rb
cucumber-rails-1.0.2 lib/cucumber/rails/rspec.rb
cucumber-rails-1.0.1 lib/cucumber/rails/rspec.rb
cucumber-rails-1.0.0 lib/cucumber/rails/rspec.rb
cucumber-rails-0.5.2 lib/cucumber/rails/rspec.rb
cucumber-rails-0.5.1 lib/cucumber/rails/rspec.rb
cucumber-rails-0.5.0 lib/cucumber/rails/rspec.rb
cucumber-rails-0.5.0.beta1 lib/cucumber/rails/rspec.rb
cucumber-rails-0.4.1 lib/cucumber/rails/rspec.rb