|
|
@ -2,9 +2,11 @@ require "rails_helper" |
|
|
|
|
|
|
|
|
|
|
|
RSpec.describe PrimaryNavigationComponent, type: :component do |
|
|
|
RSpec.describe PrimaryNavigationComponent, type: :component do |
|
|
|
let(:items) do |
|
|
|
let(:items) do |
|
|
|
[{ text: "Organisations", href: "/organisations", current: true }, |
|
|
|
[ |
|
|
|
{ text: "Users", href: "/users", current: false }, |
|
|
|
NavigationItemsHelper::NavigationItem.new("Organisations", "/organisations", true), |
|
|
|
{ text: "Logs ", href: "/logs", current: false }] |
|
|
|
NavigationItemsHelper::NavigationItem.new("Users", "/users", false), |
|
|
|
|
|
|
|
NavigationItemsHelper::NavigationItem.new("Logs ", "/logs", false), |
|
|
|
|
|
|
|
] |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
context "when the item is 'current' in nav tabs" do |
|
|
|
context "when the item is 'current' in nav tabs" do |
|
|
|