Skip to content

Commit

Permalink
tests changed
Browse files Browse the repository at this point in the history
  • Loading branch information
karoltravis committed Jan 27, 2022
1 parent 9425929 commit 4b6c9ec
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
20 changes: 10 additions & 10 deletions spec/auth/v1/repo_status_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@
it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.png' }
end

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

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

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

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

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

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

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

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

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

describe 'GET /repos/%{repo.slug}.svg?token=%{user.token}' do
describe 'GET /repos/%{repo.slug}.svg?token=%{user.svg_token}' do
it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' }
it(:without_permission) { should auth status: 200, type: :img, file: 'passing.svg' }
end
Expand Down
20 changes: 10 additions & 10 deletions spec/auth/v2/repo_status_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@
it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.png' }
end

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

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

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

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

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

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

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

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

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

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

0 comments on commit 4b6c9ec

Please sign in to comment.