diff options
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r-- | test/test_helper.rb | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb index 14f2d003f..20f7d50de 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -26,17 +26,25 @@ include ObjectHelpers require 'awesome_nested_set/version' +class ActionView::TestCase + helper :application + include ApplicationHelper +end + class ActiveSupport::TestCase include ActionDispatch::TestProcess + include Shoulda::Context::Assertions + include Shoulda::Context::InstanceMethods + extend Shoulda::Context::ClassMethods self.use_transactional_fixtures = true self.use_instantiated_fixtures = false - ESCAPED_CANT = 'can't' - ESCAPED_UCANT = 'Can't' + #ESCAPED_CANT = 'can't' + #ESCAPED_UCANT = 'Can't' # Rails 4.0.2 - #ESCAPED_CANT = 'can't' - #ESCAPED_UCANT = 'Can't' + ESCAPED_CANT = 'can't' + ESCAPED_UCANT = 'Can't' def log_user(login, password) User.anonymous @@ -147,7 +155,9 @@ class ActiveSupport::TestCase # Returns the path to the test +vendor+ repository def self.repository_path(vendor) - Rails.root.join("tmp/test/#{vendor.downcase}_repository").to_s + path = Rails.root.join("tmp/test/#{vendor.downcase}_repository").to_s + # Unlike ruby, JRuby returns Rails.root with backslashes under Windows + path.tr("\\", "/") end # Returns the url of the subversion test repository |