1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2026-01-26 18:18:51 +01:00

Remove edit, update, destroy actions for translations

This commit is contained in:
2014-12-30 11:32:06 +01:00
parent 2b812f297d
commit 3cfb19a009
4 changed files with 2 additions and 49 deletions

View File

@@ -33,22 +33,4 @@ class TranslationsControllerTest < ActionController::TestCase
get :show, id: @translation
assert_response :success
end
test "should get edit" do
get :edit, id: @translation
assert_response :success
end
test "should update translation" do
patch :update, id: @translation, translation: @update
assert_redirected_to translation_path(assigns(:translation))
end
test "should destroy translation" do
assert_difference('Translation.count', -1) do
delete :destroy, id: @translation
end
assert_redirected_to translations_path
end
end