Skip to content

Commit

Permalink
APIのテストWIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Aseiide committed Mar 28, 2022
1 parent 79f0545 commit 4dc8aa3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/integration/api/products_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
require 'test_helper'

class API::ProductsTest < ActionDispatch::IntegrationTest
fixtures :products

test 'GET /api/products.json' do
get api_products_path(format: :json)
assert_response :unauthorized
Expand Down Expand Up @@ -42,4 +44,16 @@ class API::ProductsTest < ActionDispatch::IntegrationTest
headers: { 'Authorization' => "Bearer #{token}" }
assert_response :ok
end

test 'コメント有り→コメント無しの順番で返ってくること' do
token = create_token('machida', 'testtest')
end

test 'コメント無の提出物が提出日の昇順で返ってくること' do

end

test 'コメント有の提出物がコメント日時の昇順で返ってくること' do

end
end

0 comments on commit 4dc8aa3

Please sign in to comment.