Skip to content

Commit f572823

Browse files
committed
Lint: Use common wording for HTTP expectations in specs
1 parent 6a927ee commit f572823

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

spec/controllers/bridges/lom/tasks_controller_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
subject(:get_request) { get :show, params: {id: task.to_param} }
1717

1818
shared_examples 'is a valid LOM response' do
19-
it 'returns HTTP OK' do
19+
it 'responds with status 200' do
2020
expect(response).to have_http_status :ok
2121
end
2222

@@ -36,7 +36,7 @@
3636
context 'when not allowed to access the LOM' do
3737
let(:access_level) { :private }
3838

39-
it 'returns HTTP forbidden' do
39+
it 'responds with status 403' do
4040
get_request
4141
expect(response).to have_http_status :forbidden
4242
end

spec/requests/collections_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,21 @@
2828
end
2929

3030
describe 'GET /collections/new' do
31-
it 'has http 200' do
31+
it 'responds with status 200' do
3232
get new_collection_path
3333
expect(response).to have_http_status(:ok)
3434
end
3535
end
3636

3737
describe 'GET /collections/:id/edit' do
38-
it 'has http 200' do
38+
it 'responds with status 200' do
3939
get edit_collection_path(collection)
4040
expect(response).to have_http_status(:ok)
4141
end
4242
end
4343

4444
describe 'GET /collection/:id' do
45-
it 'has http 200' do
45+
it 'responds with status 200' do
4646
get collection_path(collection)
4747
expect(response).to have_http_status(:ok)
4848
end

spec/requests/groups_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,21 @@
2828
end
2929

3030
describe 'GET /groups/new' do
31-
it 'has http 200' do
31+
it 'responds with status 200' do
3232
get new_group_path
3333
expect(response).to have_http_status(:ok)
3434
end
3535
end
3636

3737
describe 'GET /groups/:id/edit' do
38-
it 'has http 200' do
38+
it 'responds with status 200' do
3939
get edit_group_path(group)
4040
expect(response).to have_http_status(:ok)
4141
end
4242
end
4343

4444
describe 'GET /group/:id' do
45-
it 'has http 200' do
45+
it 'responds with status 200' do
4646
get group_path(group)
4747
expect(response).to have_http_status(:ok)
4848
end

spec/requests/tasks_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,21 @@
4444
end
4545

4646
describe 'GET /tasks/new' do
47-
it 'has http 200' do
47+
it 'responds with status 200' do
4848
get new_task_path
4949
expect(response).to have_http_status(:ok)
5050
end
5151
end
5252

5353
describe 'GET /tasks/:id/edit' do
54-
it 'has http 200' do
54+
it 'responds with status 200' do
5555
get edit_task_path(task)
5656
expect(response).to have_http_status(:ok)
5757
end
5858
end
5959

6060
describe 'GET /task/:id' do
61-
it 'has http 200' do
61+
it 'responds with status 200' do
6262
get task_path(task)
6363
expect(response).to have_http_status(:ok)
6464
end

spec/requests/users_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@
3030
end
3131

3232
describe 'GET /users/edit' do
33-
it 'returns http 200' do
33+
it 'responds with status 200' do
3434
get edit_user_registration_path
3535
expect(response).to have_http_status(:ok)
3636
end
3737
end
3838

3939
describe 'GET /users/:id' do
40-
it 'returns http 200' do
40+
it 'responds with status 200' do
4141
get user_path(user)
4242
expect(response).to have_http_status(:ok)
4343
end

0 commit comments

Comments
 (0)