Skip to content

Commit

Permalink
New locations of needed files
Browse files Browse the repository at this point in the history
  • Loading branch information
drogus committed Dec 28, 2009
1 parent fa0cdb1 commit dc213a9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/cucumber/rails/world.rb
@@ -1,8 +1,15 @@
if defined?(ActiveRecord::Base)
require 'test_help'
else
require 'action_controller/test_process'
require 'action_controller/integration'
# I can't do rescue LoadError because in this files could be loaded
# from rails gem (ie. load actionpack 2.3.5 if rubygems are not disabled)
if Rails.version.to_f <= 3.0
require 'action_controller/test_process'
require 'action_controller/integration'
else
require 'action_dispatch/testing/test_process'
require 'action_dispatch/testing/integration'
end
end

require 'cucumber/rails/test_unit'
Expand Down

0 comments on commit dc213a9

Please sign in to comment.