Browse Source

rubocop

pull/648/head
JG 3 years ago
parent
commit
3c4894e196
  1. 1
      app/helpers/navigation_items_helper.rb
  2. 4
      spec/requests/schemes_controller_spec.rb

1
app/helpers/navigation_items_helper.rb

@ -2,7 +2,6 @@ module NavigationItemsHelper
NavigationItem = Struct.new(:text, :href, :current, :classes) NavigationItem = Struct.new(:text, :href, :current, :classes)
def primary_items(path, current_user) def primary_items(path, current_user)
nav_items = []
if current_user.support? if current_user.support?
[ [
NavigationItem.new("Organisations", organisations_path, organisations_current?(path)), NavigationItem.new("Organisations", organisations_path, organisations_current?(path)),

4
spec/requests/schemes_controller_spec.rb

@ -38,8 +38,8 @@ RSpec.describe SchemesController, type: :request do
end end
context "when signed in as a data coordinator user" do context "when signed in as a data coordinator user" do
let(:user) { FactoryBot.create(:user, :data_coordinator) } let(:user) { FactoryBot.create(:user, :data_coordinator) }
let!(:same_org_scheme) { FactoryBot.create(:scheme, organisation: user.organisation) } let!(:same_org_scheme) { FactoryBot.create(:scheme, organisation: user.organisation) }
before do before do
sign_in user sign_in user

Loading…
Cancel
Save