Skip to content
This repository was archived by the owner on Oct 27, 2022. It is now read-only.

Commit 6995d43

Browse files
committed
Moving chunk-upload-size header test inside creatable resource block
1 parent 9b0f625 commit 6995d43

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spec/requests/uploads_api_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,16 @@
6767
'X-MAX-CHUNK-UPLOAD-SIZE' => upload_stub.max_size_bytes
6868
}}
6969

70-
it 'should return chunk-upload-size response headers' do
71-
is_expected.to eq(expected_response_status)
72-
expect(response.headers.to_h).to include(expected_response_headers)
73-
end
74-
7570
it_behaves_like 'a creatable resource' do
7671
it 'should set creator' do
7772
is_expected.to eq(expected_response_status)
7873
expect(new_object.creator_id).to eq(current_user.id)
7974
end
75+
76+
it 'should return chunk-upload-size response headers' do
77+
is_expected.to eq(expected_response_status)
78+
expect(response.headers.to_h).to include(expected_response_headers)
79+
end
8080
end
8181

8282
it_behaves_like 'a validated resource' do

0 commit comments

Comments
 (0)