test/test_helper.rb in test-unit-rails-5.1.3 vs test/test_helper.rb in test-unit-rails-5.2.1
- old
+ new
@@ -19,20 +19,25 @@
require "rails/all"
# For Rack::Builder#to_app
module TestUnitRails
class Application < ::Rails::Application
+ ::Rails.logger = config.logger = ActiveSupport::Logger.new($stdout)
end
end
require "test/unit/rails/test_help"
+require "selenium-webdriver"
Rails.application.secrets[:secret_key_base] = 'xxx'
Rails.application.routes.draw do
resources :items
end
-class ItemsController
+class ItemsController < ActionController::Base
+ def index
+ render plain: "Hello"
+ end
end
require "fileutils"
db_dir = "tmp"