|
|
|
@ -267,13 +267,11 @@ RSpec.describe NavigationItemsHelper do
|
|
|
|
|
let(:expected_navigation_items) do |
|
|
|
|
[ |
|
|
|
|
NavigationItemsHelper::NavigationItem.new("Home", "/", true), |
|
|
|
|
NavigationItemsHelper::NavigationItem.new("Organisations", "/organisations", false), |
|
|
|
|
NavigationItemsHelper::NavigationItem.new("Users", "/users", false), |
|
|
|
|
NavigationItemsHelper::NavigationItem.new("Lettings logs", "/lettings-logs", false), |
|
|
|
|
NavigationItemsHelper::NavigationItem.new("Sales logs", "/sales-logs", false), |
|
|
|
|
NavigationItemsHelper::NavigationItem.new("Schemes", "/schemes", false), |
|
|
|
|
NavigationItemsHelper::NavigationItem.new("Users", "/organisations/#{current_user.organisation.id}/users", false), |
|
|
|
|
NavigationItemsHelper::NavigationItem.new("About your organisation", "/organisations/#{current_user.organisation.id}/details", false), |
|
|
|
|
NavigationItemsHelper::NavigationItem.new("Stock owners", "/organisations/#{current_user.organisation.id}/stock-owners", false), |
|
|
|
|
NavigationItemsHelper::NavigationItem.new("Managing agents", "/organisations/#{current_user.organisation.id}/managing-agents", false), |
|
|
|
|
] |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|