spec/fume/nav/helper_ext_spec.rb in fume-nav-0.1.3 vs spec/fume/nav/helper_ext_spec.rb in fume-nav-0.1.4

- old
+ new

@@ -22,7 +22,12 @@ context "then hide_if_empty is true" do subject { view.fume_nav(current, hide_if_empty: false) { |n| "show" } } it { is_expected.to eq "show" } end + + context "then inactive_class is set" do + subject { view.fume_nav(current, inactive_class: "text-muted") { |n| n.li_tag(:bar) { "bar" } } } + it { is_expected.to include('<li class="text-muted">bar</li>') } + end end end