Class: Cucumber::Rails::World

Inherits:
ActionController::IntegrationTest
  • Object
show all
Defined in:
lib/cucumber/rails/world.rb

Overview

All scenarios will execute in the context of a new instance of Cucumber::Rails:World if this file is loaded. This gives Step Definitions access to all the methods from Rails’ ActionController::IntegrationTest

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeWorld

:nodoc:



35
36
37
# File 'lib/cucumber/rails/world.rb', line 35

def initialize #:nodoc:
  @_result = Test::Unit::TestResult.new
end

Class Method Details

.fixture_table_namesObject

Workaround for projects that don’t use ActiveRecord



32
# File 'lib/cucumber/rails/world.rb', line 32

def self.fixture_table_names; []; end