File tree Expand file tree Collapse file tree 5 files changed +13
-13
lines changed
Expand file tree Collapse file tree 5 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments