Sha256: b53243f508b913cbde4f6e2952176b136afb8c10e9a83f0c737f6ce6dda8b487

Contents?: true

Size: 914 Bytes

Versions: 16

Compression:

Stored size: 914 Bytes

Contents

if defined?(ActiveRecord::Base)
  require 'test_help' 
else
  require 'action_controller/test_process'
  require 'action_controller/integration'
end

require 'cucumber/rails/test_unit'
require 'cucumber/rails/action_controller'

unless ::Rails.configuration.cache_classes
  warn "WARNING: You have set Rails' config.cache_classes to false (most likely in config/environments/cucumber.rb).  This setting is known to break Cucumber's use_transactional_fixtures method. Set config.cache_classes to true if you want to use transactional fixtures.  For more information see https://rspec.lighthouseapp.com/projects/16211/tickets/165."
end

module Cucumber #:nodoc:
  module Rails
    class World < ActionController::IntegrationTest
      def initialize #:nodoc:
        @_result = Test::Unit::TestResult.new
      end
    end
  end
end

require 'cucumber/rails/active_record'

World do
  Cucumber::Rails::World.new
end

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
aslakhellesoy-cucumber-0.3.101.2 lib/cucumber/rails/world.rb
aslakhellesoy-cucumber-0.3.102.1 lib/cucumber/rails/world.rb
aslakhellesoy-cucumber-0.3.102.2 lib/cucumber/rails/world.rb
aslakhellesoy-cucumber-0.3.102 lib/cucumber/rails/world.rb
aslakhellesoy-cucumber-0.3.103 lib/cucumber/rails/world.rb
aslakhellesoy-cucumber-0.3.104 lib/cucumber/rails/world.rb
kosmas58-cucumber-0.3.102 lib/cucumber/rails/world.rb
kosmas58-cucumber-0.3.103 lib/cucumber/rails/world.rb
cucumber-0.4.3 lib/cucumber/rails/world.rb
cucumber-0.4.2 lib/cucumber/rails/world.rb
cucumber-0.4.1 lib/cucumber/rails/world.rb
cucumber-0.4.0 lib/cucumber/rails/world.rb
cucumber-0.4.0.rc1 lib/cucumber/rails/world.rb
cucumber-0.3.104 lib/cucumber/rails/world.rb
cucumber-0.3.103 lib/cucumber/rails/world.rb
cucumber-0.3.102 lib/cucumber/rails/world.rb