mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-11-23 19:33:46 +01:00
Remove edit, update, destroy actions for translations
This commit is contained in:
1 parent
2b812f297d
commit
3cfb19a009
4 files changed
+2
-49
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user