@@ -10,16 +10,16 @@ class Api::V1::Airtable::MentorshipsControllerTest < ActionDispatch::Integration
1010 VCR . use_cassette ( 'airtable/mentorship/successful' ) do
1111 get api_v1_airtable_mentorships_path , headers : @headers , as : :json
1212
13- assert_equal response . status , 200
14- assert response . parsed_body . keys . sort == [ 'mentors' , 'services' , 'skillsets' ]
13+ assert_equal 200 , response . status
14+ assert_equal [ 'mentors' , 'services' , 'skillsets' ] , response . parsed_body . keys . sort
1515 end
1616 end
1717
1818 test ':index when rate limit returns a 422 and error message' do
1919 VCR . use_cassette ( 'airtable/mentorship/exceeded_rate_limit' ) do
2020 get api_v1_airtable_mentorships_path , headers : @headers , as : :json
2121
22- assert_equal response . status , 422
22+ assert_equal 422 , response . status
2323 assert response . parsed_body [ 'error' ] . present?
2424 end
2525 end
@@ -42,7 +42,7 @@ class Api::V1::Airtable::MentorshipsControllerTest < ActionDispatch::Integration
4242 as : :json
4343 )
4444
45- assert_equal response . status , 201
45+ assert_equal 201 , response . status
4646 assert response . parsed_body [ 'id' ] . present?
4747 assert response . parsed_body [ 'createdTime' ] . present?
4848 end
@@ -66,7 +66,7 @@ class Api::V1::Airtable::MentorshipsControllerTest < ActionDispatch::Integration
6666 as : :json
6767 )
6868
69- assert_equal response . status , 201
69+ assert_equal 201 , response . status
7070 assert response . parsed_body [ 'id' ] . present?
7171 assert response . parsed_body [ 'createdTime' ] . present?
7272 end
0 commit comments