Browse Source

Rubocop

pull/122/head
baarkerlounger 4 years ago
parent
commit
9c47515232
  1. 1
      app/components/tab_navigation_component.rb
  2. 2
      spec/components/tab_navigation_component_spec.rb

1
app/components/tab_navigation_component.rb

@ -3,6 +3,7 @@ class TabNavigationComponent < ViewComponent::Base
def initialize(items:)
@items = items
super
end
def strip_query(url)

2
spec/components/tab_navigation_component_spec.rb

@ -1,6 +1,6 @@
require "rails_helper"
RSpec.describe TabNavigationComponent, type: :component do
RSpec.describe TabNavigationComponent, type: :component do
let(:items) do
[{ name: "Application", url: "#", current: true },
{ name: "Notes", url: "#" },

Loading…
Cancel
Save