Sha256: 13fa467f735a55d5776db0a848369c7546cf3a06f786237145aa0541ad558a01

Contents?: true

Size: 638 Bytes

Versions: 5

Compression:

Stored size: 638 Bytes

Contents

# TODO: Not even sure is this is necessary anymore, since we're doing this in Cucumber's rb_world.rb...
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

5 entries across 5 versions & 3 rubygems

Version Path
cucumber-rails2-0.3.5 lib/cucumber/rails/rspec.rb
cucumber-rails2-0.3.4 lib/cucumber/rails/rspec.rb
cucumber-rails2-0.3.3 lib/cucumber/rails/rspec.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/cucumber-rails-0.3.2/lib/cucumber/rails/rspec.rb
cucumber-rails-0.3.2 lib/cucumber/rails/rspec.rb