Skip to content

Commit

Permalink
update specs
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwoldatwork committed Dec 18, 2024
1 parent 95b7535 commit f72c39a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/controllers/api/v0/forms_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
describe 'overloading keys' do
context 'passing an invalid API_KEY by header and valid api key by parameter' do
let!(:user) { FactoryBot.create(:user) }
let(:form) { FactoryBot.create(:form, :with_responses, organization: user.organization) }
let(:form) { FactoryBot.create(:form, :single_question, :with_responses, organization: user.organization) }
let!(:user_role) { FactoryBot.create(:user_role, :form_manager, user:, form:) }

before do
Expand All @@ -64,7 +64,7 @@
describe '#index' do
context 'passing a valid API_KEY header' do
let!(:user) { FactoryBot.create(:user) }
let(:form) { FactoryBot.create(:form, :with_responses, organization: user.organization) }
let(:form) { FactoryBot.create(:form, :single_question, :with_responses, organization: user.organization) }
let!(:user_role) { FactoryBot.create(:user_role, :form_manager, user:, form:) }

before do
Expand All @@ -84,7 +84,7 @@

context 'passing a valid API_KEY param' do
let!(:user) { FactoryBot.create(:user) }
let(:form) { FactoryBot.create(:form, :with_responses, organization: user.organization) }
let(:form) { FactoryBot.create(:form, :single_question, :with_responses, organization: user.organization) }
let!(:user_role) { FactoryBot.create(:user_role, :form_manager, user:, form:) }

before do
Expand All @@ -105,7 +105,7 @@
describe '#show' do
context 'passing a valid API_KEY' do
let!(:user) { FactoryBot.create(:user) }
let(:form) { FactoryBot.create(:form, :with_responses, organization: user.organization) }
let(:form) { FactoryBot.create(:form, :single_question, :with_responses, organization: user.organization) }
let!(:user_role) { FactoryBot.create(:user_role, :form_manager, user:, form:) }

before do
Expand All @@ -126,7 +126,7 @@

context 'paging' do
let!(:user) { FactoryBot.create(:user) }
let(:form) { FactoryBot.create(:form, :with_responses, organization: user.organization) }
let(:form) { FactoryBot.create(:form, :single_question, :with_responses, organization: user.organization) }
let!(:user_role) { FactoryBot.create(:user_role, :form_manager, user:, form:) }

before do
Expand Down Expand Up @@ -181,7 +181,7 @@

context 'date_filter' do
let!(:user) { FactoryBot.create(:user) }
let(:form) { FactoryBot.create(:form, :with_responses, organization: user.organization) }
let(:form) { FactoryBot.create(:form, :single_question, :with_responses, organization: user.organization) }
let!(:user_role) { FactoryBot.create(:user_role, :form_manager, user:, form:) }

before do
Expand Down

0 comments on commit f72c39a

Please sign in to comment.