Skip to content

Commit 4b6c9ec

Browse files
committed
tests changed
1 parent 9425929 commit 4b6c9ec

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

spec/auth/v1/repo_status_spec.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@
7979
it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.png' }
8080
end
8181

82-
describe 'GET /repos/%{repo.slug}?token=%{user.token} Accept image/svg+xml' do
82+
describe 'GET /repos/%{repo.slug}?token=%{user.svg_token} Accept image/svg+xml' do
8383
let(:accept) { 'image/svg+xml' }
8484
it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' }
8585
it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.svg' }
8686
end
8787

88-
describe 'GET /repos/%{repo.slug}.svg?token=%{user.token}' do
88+
describe 'GET /repos/%{repo.slug}.svg?token=%{user.svg_token}' do
8989
it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' }
9090
it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.svg' }
9191
end
@@ -184,13 +184,13 @@
184184
it(:without_permission) { should auth status: 200, type: :img, file: 'passing.png' }
185185
end
186186

187-
describe 'GET /repos/%{repo.slug}?token=%{user.token} Accept image/svg+xml' do
187+
describe 'GET /repos/%{repo.slug}?token=%{user.svg_token} Accept image/svg+xml' do
188188
let(:accept) { 'image/svg+xml' }
189189
it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' }
190190
it(:without_permission) { should auth status: 200, type: :img, file: 'passing.svg' }
191191
end
192192

193-
describe 'GET /repos/%{repo.slug}.svg?token=%{user.token}' do
193+
describe 'GET /repos/%{repo.slug}.svg?token=%{user.svg_token}' do
194194
it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' }
195195
it(:without_permission) { should auth status: 200, type: :img, file: 'passing.svg' }
196196
end
@@ -289,13 +289,13 @@
289289
it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.png' }
290290
end
291291

292-
describe 'GET /repos/%{repo.slug}?token=%{user.token} Accept image/svg+xml' do
292+
describe 'GET /repos/%{repo.slug}?token=%{user.svg_token} Accept image/svg+xml' do
293293
let(:accept) { 'image/svg+xml' }
294294
it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' }
295295
it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.svg' }
296296
end
297297

298-
describe 'GET /repos/%{repo.slug}.svg?token=%{user.token}' do
298+
describe 'GET /repos/%{repo.slug}.svg?token=%{user.svg_token}' do
299299
it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' }
300300
it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.svg' }
301301
end
@@ -400,13 +400,13 @@
400400
it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.png' }
401401
end
402402

403-
describe 'GET /repos/%{repo.slug}?token=%{user.token} Accept image/svg+xml' do
403+
describe 'GET /repos/%{repo.slug}?token=%{user.svg_token} Accept image/svg+xml' do
404404
let(:accept) { 'image/svg+xml' }
405405
it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' }
406406
it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.svg' }
407407
end
408408

409-
describe 'GET /repos/%{repo.slug}.svg?token=%{user.token}' do
409+
describe 'GET /repos/%{repo.slug}.svg?token=%{user.svg_token}' do
410410
it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' }
411411
it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.svg' }
412412
end
@@ -505,13 +505,13 @@
505505
it(:without_permission) { should auth status: 200, type: :img, file: 'passing.png' }
506506
end
507507

508-
describe 'GET /repos/%{repo.slug}?token=%{user.token} Accept image/svg+xml' do
508+
describe 'GET /repos/%{repo.slug}?token=%{user.svg_token} Accept image/svg+xml' do
509509
let(:accept) { 'image/svg+xml' }
510510
it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' }
511511
it(:without_permission) { should auth status: 200, type: :img, file: 'passing.svg' }
512512
end
513513

514-
describe 'GET /repos/%{repo.slug}.svg?token=%{user.token}' do
514+
describe 'GET /repos/%{repo.slug}.svg?token=%{user.svg_token}' do
515515
it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' }
516516
it(:without_permission) { should auth status: 200, type: :img, file: 'passing.svg' }
517517
end

spec/auth/v2/repo_status_spec.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@
7979
it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.png' }
8080
end
8181

82-
describe 'GET /repos/%{repo.slug}?token=%{user.token} Accept image/svg+xml' do
82+
describe 'GET /repos/%{repo.slug}?token=%{user.svg_token} Accept image/svg+xml' do
8383
let(:accept) { 'image/svg+xml' }
8484
it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' }
8585
it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.svg' }
8686
end
8787

88-
describe 'GET /repos/%{repo.slug}.svg?token=%{user.token}' do
88+
describe 'GET /repos/%{repo.slug}.svg?token=%{user.svg_token}' do
8989
it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' }
9090
it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.svg' }
9191
end
@@ -184,13 +184,13 @@
184184
it(:without_permission) { should auth status: 200, type: :img, file: 'passing.png' }
185185
end
186186

187-
describe 'GET /repos/%{repo.slug}?token=%{user.token} Accept image/svg+xml' do
187+
describe 'GET /repos/%{repo.slug}?token=%{user.svg_token} Accept image/svg+xml' do
188188
let(:accept) { 'image/svg+xml' }
189189
it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' }
190190
it(:without_permission) { should auth status: 200, type: :img, file: 'passing.svg' }
191191
end
192192

193-
describe 'GET /repos/%{repo.slug}.svg?token=%{user.token}' do
193+
describe 'GET /repos/%{repo.slug}.svg?token=%{user.svg_token}' do
194194
it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' }
195195
it(:without_permission) { should auth status: 200, type: :img, file: 'passing.svg' }
196196
end
@@ -289,13 +289,13 @@
289289
it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.png' }
290290
end
291291

292-
describe 'GET /repos/%{repo.slug}?token=%{user.token} Accept image/svg+xml' do
292+
describe 'GET /repos/%{repo.slug}?token=%{user.svg_token} Accept image/svg+xml' do
293293
let(:accept) { 'image/svg+xml' }
294294
it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' }
295295
it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.svg' }
296296
end
297297

298-
describe 'GET /repos/%{repo.slug}.svg?token=%{user.token}' do
298+
describe 'GET /repos/%{repo.slug}.svg?token=%{user.svg_token}' do
299299
it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' }
300300
it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.svg' }
301301
end
@@ -400,13 +400,13 @@
400400
it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.png' }
401401
end
402402

403-
describe 'GET /repos/%{repo.slug}?token=%{user.token} Accept image/svg+xml' do
403+
describe 'GET /repos/%{repo.slug}?token=%{user.svg_token} Accept image/svg+xml' do
404404
let(:accept) { 'image/svg+xml' }
405405
it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' }
406406
it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.svg' }
407407
end
408408

409-
describe 'GET /repos/%{repo.slug}.svg?token=%{user.token}' do
409+
describe 'GET /repos/%{repo.slug}.svg?token=%{user.svg_token}' do
410410
it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' }
411411
it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.svg' }
412412
end
@@ -505,13 +505,13 @@
505505
it(:without_permission) { should auth status: 200, type: :img, file: 'passing.png' }
506506
end
507507

508-
describe 'GET /repos/%{repo.slug}?token=%{user.token} Accept image/svg+xml' do
508+
describe 'GET /repos/%{repo.slug}?token=%{user.svg_token} Accept image/svg+xml' do
509509
let(:accept) { 'image/svg+xml' }
510510
it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' }
511511
it(:without_permission) { should auth status: 200, type: :img, file: 'passing.svg' }
512512
end
513513

514-
describe 'GET /repos/%{repo.slug}.svg?token=%{user.token}' do
514+
describe 'GET /repos/%{repo.slug}.svg?token=%{user.svg_token}' do
515515
it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' }
516516
it(:without_permission) { should auth status: 200, type: :img, file: 'passing.svg' }
517517
end

0 commit comments

Comments
 (0)