diff --git a/test/functional/application_controller_test.rb b/test/functional/application_controller_test.rb index 705724f..be14db0 100644 --- a/test/functional/application_controller_test.rb +++ b/test/functional/application_controller_test.rb @@ -15,7 +15,7 @@ # ---------------------------------------------------------------- test "make sure unauthorized users are redirected to the root path" do plan = Plan.first - get project_path(I18n.locale, plan) + get plan_path(I18n.locale, plan) assert_redirected_to "#{root_path}?locale=#{I18n.locale}" end @@ -28,7 +28,7 @@ # Verify that passing a locale in the URL will set the locale other = I18n.available_locales.last - get project_path(other, plan) + get plan_path(other, plan) assert_redirected_to "#{root_path}?locale=#{I18n.locale}", "Expected the changed locale to appear in the query string" assert_equal other, I18n.locale, "Expected the locale to have been set when passing it in URL" end @@ -44,7 +44,7 @@ get root_path assert_equal @user.language.abbreviation.to_s, I18n.locale.to_s, "Expected the locale to have been set to the user's chosen language" - assert "#{projects_path}".starts_with?("/#{@user.language.abbreviation}/"), "Expected the system to use the user's language specification" + assert "#{plans_path}".starts_with?("/#{@user.language.abbreviation}/"), "Expected the system to use the user's language specification" end end @@ -60,7 +60,7 @@ get root_path org_lang = Language.find(@user.org[:language_id]).abbreviation assert_equal org_lang.to_s, I18n.locale.to_s, "Expected the locale to have been set to the org's chosen language" - assert "#{projects_path}".starts_with?("/#{org_lang}/"), "Expected the system to use the org's language specification" + assert "#{plans_path}".starts_with?("/#{org_lang}/"), "Expected the system to use the org's language specification" end end @@ -70,8 +70,8 @@ assert_equal root_path, session[:previous_url] sign_in @user - get projects_path - assert_equal projects_path, session[:previous_url] + get plans_path + assert_equal plans_path, session[:previous_url] end end