Skip to content

Commit

Permalink
Move request specs to the correct directory (#132)
Browse files Browse the repository at this point in the history
This allows rspec to correctly infer the test type
  • Loading branch information
patch0 authored Feb 16, 2023
2 parents 22de41d + 6495c2c commit 9fb833d
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'rails_helper'

RSpec.describe 'Create project requests', type: :request do
RSpec.describe 'Create project requests' do
let(:user_id) { 'e0675b6c-dc48-4cd6-8c04-0f7ac05af51a' }
let(:project) { create(:project, user_id:) }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'rails_helper'

RSpec.describe 'Project delete requests', type: :request do
RSpec.describe 'Project delete requests' do
let(:user_id) { 'e0675b6c-dc48-4cd6-8c04-0f7ac05af51a' }

context 'when user is logged in' do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'rails_helper'

RSpec.describe 'Images requests', type: :request do
RSpec.describe 'Images requests' do
let(:user_id) { 'e0675b6c-dc48-4cd6-8c04-0f7ac05af51a' }
let(:project) { create(:project, user_id:) }
let(:image_filename) { 'test_image_1.png' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'rails_helper'

RSpec.describe 'Project index requests', type: :request do
RSpec.describe 'Project index requests' do
include PaginationLinksMock

let(:user_id) { 'e0675b6c-dc48-4cd6-8c04-0f7ac05af51a' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'rails_helper'

RSpec.describe 'Remix requests', type: :request do
RSpec.describe 'Remix requests' do
let!(:original_project) { create(:project) }
let(:user_id) { 'e0675b6c-dc48-4cd6-8c04-0f7ac05af51a' }
let(:project_params) do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'rails_helper'

RSpec.describe 'Project show requests', type: :request do
RSpec.describe 'Project show requests' do
let!(:project) { create(:project) }
let(:project_json) do
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'rails_helper'

RSpec.describe 'Project update requests', type: :request do
RSpec.describe 'Project update requests' do
let(:user_id) { 'e0675b6c-dc48-4cd6-8c04-0f7ac05af51a' }
let(:project) { create(:project, user_id:) }

Expand Down

0 comments on commit 9fb833d

Please sign in to comment.