test/helper_test.rb in menu_builder-0.4.4 vs test/helper_test.rb in menu_builder-0.5
- old
+ new
@@ -38,11 +38,11 @@
concat m.contact "Store", "/store"
})
assert_select "li.current", 1
end
-
+
test "customize the current item class" do
@menu_items = [:home]
concat(menu({:current_class => "active"}) { |m|
concat m.home "Home", "/"
concat m.contact "Store", "/store"
@@ -61,11 +61,11 @@
concat m.settings "Settings", "/settings"
})
assert_select "li.current", 2
end
-
+
test "accept more than one menu item for a custom current item class" do
@menu_items = [:settings, :notifications]
concat(menu({:current_class => "active"}) { |m|
concat m.home "Home", "/"
@@ -74,12 +74,12 @@
})
assert_select "li.current", 0
assert_select "li.active", 2
end
-
-
+
+
test "accept more than one menu" do
@menu_items = [:settings, :notifications]
concat(menu { |m|
concat m.home "Home", "/"
@@ -118,7 +118,7 @@
})
})
assert_select "ul > li > a > img"
end
-
+
end