Browse Source

rubocop

pull/648/head
JG 3 years ago
parent
commit
4731486a3b
  1. 2
      spec/helpers/navigation_items_helper_spec.rb
  2. 4
      spec/requests/organisations_controller_spec.rb

2
spec/helpers/navigation_items_helper_spec.rb

@ -200,7 +200,7 @@ RSpec.describe NavigationItemsHelper do
[ [
NavigationItemsHelper::NavigationItem.new("Logs", "/organisations/#{current_user.organisation.id}/logs", false), NavigationItemsHelper::NavigationItem.new("Logs", "/organisations/#{current_user.organisation.id}/logs", false),
NavigationItemsHelper::NavigationItem.new("Supported housing", "/organisations/#{current_user.organisation.id}/supported-housing", true), NavigationItemsHelper::NavigationItem.new("Supported housing", "/organisations/#{current_user.organisation.id}/supported-housing", true),
NavigationItemsHelper::NavigationItem.new("Users", "/organisations/#{current_user.organisation.id}/users",false), NavigationItemsHelper::NavigationItem.new("Users", "/organisations/#{current_user.organisation.id}/users", false),
NavigationItemsHelper::NavigationItem.new("About this organisation", "/organisations/#{current_user.organisation.id}", false), NavigationItemsHelper::NavigationItem.new("About this organisation", "/organisations/#{current_user.organisation.id}", false),
] ]
end end

4
spec/requests/organisations_controller_spec.rb

@ -35,7 +35,7 @@ RSpec.describe OrganisationsController, type: :request do
context "when user is signed in" do context "when user is signed in" do
describe "#schemes" do describe "#schemes" do
context "support user" do context "when support user" do
let(:user) { FactoryBot.create(:user, :support) } let(:user) { FactoryBot.create(:user, :support) }
let!(:schemes) { FactoryBot.create_list(:scheme, 5) } let!(:schemes) { FactoryBot.create_list(:scheme, 5) }
let!(:same_org_scheme) { FactoryBot.create(:scheme, organisation: user.organisation) } let!(:same_org_scheme) { FactoryBot.create(:scheme, organisation: user.organisation) }
@ -90,7 +90,7 @@ RSpec.describe OrganisationsController, type: :request do
end end
end end
context "data coordinator user" do context "when data coordinator user" do
let(:user) { FactoryBot.create(:user, :data_coordinator) } let(:user) { FactoryBot.create(:user, :data_coordinator) }
let!(:schemes) { FactoryBot.create_list(:scheme, 5) } let!(:schemes) { FactoryBot.create_list(:scheme, 5) }
let!(:same_org_scheme) { FactoryBot.create(:scheme, organisation: user.organisation) } let!(:same_org_scheme) { FactoryBot.create(:scheme, organisation: user.organisation) }

Loading…
Cancel
Save