Skip to content
This repository was archived by the owner on Dec 3, 2019. It is now read-only.

Commit 80a76c8

Browse files
committed
Flipped some expected, actual occurances
1 parent d7e72d0 commit 80a76c8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/controllers/api/v1/airtable/mentorships_controller_test.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)