mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-01-27 02:28:50 +01:00
Move translation viewing to admin namespace
This commit is contained in:
15
test/controllers/admin/dashboard_controller_test.rb
Normal file
15
test/controllers/admin/dashboard_controller_test.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
require 'test_helper'
|
||||
|
||||
class Admin::DashboardControllerTest < ActionController::TestCase
|
||||
include Devise::TestHelpers
|
||||
|
||||
setup do
|
||||
login
|
||||
end
|
||||
|
||||
test "should get index" do
|
||||
get :index
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
end
|
||||
21
test/controllers/admin/translations_controller_test.rb
Normal file
21
test/controllers/admin/translations_controller_test.rb
Normal file
@@ -0,0 +1,21 @@
|
||||
require 'test_helper'
|
||||
|
||||
class Admin::TranslationsControllerTest < ActionController::TestCase
|
||||
include Devise::TestHelpers
|
||||
|
||||
setup do
|
||||
login
|
||||
@translation = translations(:translation_one)
|
||||
end
|
||||
test "should get index" do
|
||||
get :index
|
||||
assert_response :success
|
||||
assert_not_nil assigns(:translations)
|
||||
end
|
||||
|
||||
test "should show translation" do
|
||||
get :show, id: @translation
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user