fixes welcome controller test by defining available languages to include tested ones

pull/41/head
Jens Ulferts 12 years ago committed by Martin Czuchra
parent 17361ca71f
commit c71427ac32
  1. 5
      test/functional/welcome_controller_test.rb

@ -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

Loading…
Cancel
Save