Move translation viewing to admin namespace

This commit is contained in:
pfischbeck committed 2015-02-16 09:37:13 +01:00
1 parent 49c7d97a41
commit 6b463417ba
26 files changed
+96 -39

No files matched your search

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