Sha256: 8e7e099f5d6b8d947231c31e257f904a87d26c96bfb9a0d4092dcbd095a9e8f4

Contents?: true

Size: 727 Bytes

Versions: 16

Compression:

Stored size: 727 Bytes

Contents

begin
  # Try to load it so we can assign @_result below if needed.
  require 'test/unit/testresult'
rescue LoadError => ignore
end

module Cucumber #:nodoc:
  module Rails #:nodoc:
    class World < ActionController::IntegrationTest #:nodoc:
      include Rack::Test::Methods
      include ActiveSupport::Testing::SetupAndTeardown if ActiveSupport::Testing.const_defined?("SetupAndTeardown")

      def initialize #:nodoc:
        @_result = Test::Unit::TestResult.new if defined?(Test::Unit::TestResult)
      end

      if !defined?(ActiveRecord::Base)
        def self.fixture_table_names; []; end # Workaround for projects that don't use ActiveRecord
      end
    end
  end
end

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

Version data entries

16 entries across 16 versions & 2 rubygems

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