Skip to content

Commit

Permalink
Refactored tests to make sure the Action ins functioning correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoACG committed Sep 19, 2024
1 parent 35d17dd commit 35cc590
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/requests/api/v1/attendee_request_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,13 @@
describe 'index' do

it 'returns attendees' do
get '/api/v1/attendees'
get "/api/v1/attendees?event_id=#{@event1.id}"

expect(response).to be_successful
expect(response.status).to eq(200)

attendees = JSON.parse(response.body, symbolize_names: true)
# require 'pry'; binding.pry
expect(attendees).to have_key(:data)
expect(attendees).to be_a(Hash)
expect(attendees.count).to eq(1)
Expand Down

0 comments on commit 35cc590

Please sign in to comment.