mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-01-27 02:28:50 +01:00
Add redirects, update test types
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
require 'test_helper'
|
||||
|
||||
class Admin::TranslationsControllerTest < ActionController::TestCase
|
||||
include Devise::Test::ControllerHelpers
|
||||
class Admin::TranslationsControllerTest < ActionDispatch::IntegrationTest
|
||||
include Devise::Test::IntegrationHelpers
|
||||
|
||||
setup do
|
||||
login
|
||||
@translation = translations(:translation_one)
|
||||
end
|
||||
test "should get index" do
|
||||
get :index
|
||||
get admin_translations_url
|
||||
assert_response :success
|
||||
assert_not_nil assigns(:translations)
|
||||
end
|
||||
|
||||
test "should show translation" do
|
||||
get :show, params: { id: @translation }
|
||||
get admin_translation_url(id: @translation)
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user