Skip to content

Commit

Permalink
Add test for when member exists
Browse files Browse the repository at this point in the history
  • Loading branch information
greganswer committed Apr 22, 2021
1 parent 02f7f34 commit 610c8f3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions spec/requests/members_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@
end

describe 'viewing a member' do
# context 'when member exists' do
# subject { post '/members', headers: headers }
#
# it 'returns the correct status code' do
# subject
# expect(response).to have_http_status(:success)
# end
# end
context 'when member exists' do
subject { get "/members/#{Member.first.id}", headers: headers }

it 'returns the correct status code' do
subject
expect(response).to have_http_status(:success)
end
end

context 'when member not fond' do
subject { get '/members/0', headers: headers }
Expand Down

0 comments on commit 610c8f3

Please sign in to comment.