Browse Source

fixed failing tests for support user

pull/648/head
JG 3 years ago
parent
commit
4ea8afd6d8
  1. 2
      spec/requests/organisations_controller_spec.rb

2
spec/requests/organisations_controller_spec.rb

@ -41,6 +41,7 @@ RSpec.describe OrganisationsController, type: :request do
let!(:same_org_scheme) { FactoryBot.create(:scheme, organisation: user.organisation) } let!(:same_org_scheme) { FactoryBot.create(:scheme, organisation: user.organisation) }
before do before do
allow(user).to receive(:need_two_factor_authentication?).and_return(false)
sign_in user sign_in user
get "/organisations/#{organisation.id}/supported-housing", headers:, params: {} get "/organisations/#{organisation.id}/supported-housing", headers:, params: {}
end end
@ -70,6 +71,7 @@ RSpec.describe OrganisationsController, type: :request do
let(:search_param) { "CODE321" } let(:search_param) { "CODE321" }
before do before do
allow(user).to receive(:need_two_factor_authentication?).and_return(false)
get "/organisations/#{organisation.id}/supported-housing?search=#{search_param}" get "/organisations/#{organisation.id}/supported-housing?search=#{search_param}"
end end

Loading…
Cancel
Save