Skip to content

Commit

Permalink
Remove unneed controller tests
Browse files Browse the repository at this point in the history
  • Loading branch information
unasuke committed Dec 15, 2016
1 parent 32c926f commit 56d92f3
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions test/controllers/characters_controller_test.rb
Expand Up @@ -9,30 +9,4 @@ class CharactersControllerTest < ActionDispatch::IntegrationTest
get characters_url, as: :json
assert_response :success
end

test "should create character" do
assert_difference('Character.count') do
post characters_url, params: { character: { } }, as: :json
end

assert_response 201
end

test "should show character" do
get character_url(@character), as: :json
assert_response :success
end

test "should update character" do
patch character_url(@character), params: { character: { } }, as: :json
assert_response 200
end

test "should destroy character" do
assert_difference('Character.count', -1) do
delete character_url(@character), as: :json
end

assert_response 204
end
end

0 comments on commit 56d92f3

Please sign in to comment.