|
79 | 79 | it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.png' } |
80 | 80 | end |
81 | 81 |
|
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 |
83 | 83 | let(:accept) { 'image/svg+xml' } |
84 | 84 | it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' } |
85 | 85 | it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.svg' } |
86 | 86 | end |
87 | 87 |
|
88 | | - describe 'GET /repos/%{repo.slug}.svg?token=%{user.token}' do |
| 88 | + describe 'GET /repos/%{repo.slug}.svg?token=%{user.svg_token}' do |
89 | 89 | it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' } |
90 | 90 | it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.svg' } |
91 | 91 | end |
|
184 | 184 | it(:without_permission) { should auth status: 200, type: :img, file: 'passing.png' } |
185 | 185 | end |
186 | 186 |
|
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 |
188 | 188 | let(:accept) { 'image/svg+xml' } |
189 | 189 | it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' } |
190 | 190 | it(:without_permission) { should auth status: 200, type: :img, file: 'passing.svg' } |
191 | 191 | end |
192 | 192 |
|
193 | | - describe 'GET /repos/%{repo.slug}.svg?token=%{user.token}' do |
| 193 | + describe 'GET /repos/%{repo.slug}.svg?token=%{user.svg_token}' do |
194 | 194 | it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' } |
195 | 195 | it(:without_permission) { should auth status: 200, type: :img, file: 'passing.svg' } |
196 | 196 | end |
|
289 | 289 | it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.png' } |
290 | 290 | end |
291 | 291 |
|
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 |
293 | 293 | let(:accept) { 'image/svg+xml' } |
294 | 294 | it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' } |
295 | 295 | it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.svg' } |
296 | 296 | end |
297 | 297 |
|
298 | | - describe 'GET /repos/%{repo.slug}.svg?token=%{user.token}' do |
| 298 | + describe 'GET /repos/%{repo.slug}.svg?token=%{user.svg_token}' do |
299 | 299 | it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' } |
300 | 300 | it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.svg' } |
301 | 301 | end |
|
400 | 400 | it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.png' } |
401 | 401 | end |
402 | 402 |
|
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 |
404 | 404 | let(:accept) { 'image/svg+xml' } |
405 | 405 | it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' } |
406 | 406 | it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.svg' } |
407 | 407 | end |
408 | 408 |
|
409 | | - describe 'GET /repos/%{repo.slug}.svg?token=%{user.token}' do |
| 409 | + describe 'GET /repos/%{repo.slug}.svg?token=%{user.svg_token}' do |
410 | 410 | it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' } |
411 | 411 | it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.svg' } |
412 | 412 | end |
|
505 | 505 | it(:without_permission) { should auth status: 200, type: :img, file: 'passing.png' } |
506 | 506 | end |
507 | 507 |
|
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 |
509 | 509 | let(:accept) { 'image/svg+xml' } |
510 | 510 | it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' } |
511 | 511 | it(:without_permission) { should auth status: 200, type: :img, file: 'passing.svg' } |
512 | 512 | end |
513 | 513 |
|
514 | | - describe 'GET /repos/%{repo.slug}.svg?token=%{user.token}' do |
| 514 | + describe 'GET /repos/%{repo.slug}.svg?token=%{user.svg_token}' do |
515 | 515 | it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' } |
516 | 516 | it(:without_permission) { should auth status: 200, type: :img, file: 'passing.svg' } |
517 | 517 | end |
|
0 commit comments