|
|
|
@ -18,12 +18,15 @@ require 'welcome_controller' |
|
|
|
|
class WelcomeController; def rescue_action(e) raise e end; end |
|
|
|
|
|
|
|
|
|
class WelcomeControllerTest < ActionController::TestCase |
|
|
|
|
fixtures :projects, :news |
|
|
|
|
fixtures :projects, |
|
|
|
|
:news, |
|
|
|
|
:users |
|
|
|
|
|
|
|
|
|
def setup |
|
|
|
|
@controller = WelcomeController.new |
|
|
|
|
@request = ActionController::TestRequest.new |
|
|
|
|
@response = ActionController::TestResponse.new |
|
|
|
|
Setting.available_languages = [:en, :fr, :"zh-TW"] |
|
|
|
|
User.current = nil |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|