test/ui/nav_test.rb in ui_bibz-2.0.0.alpha14 vs test/ui/nav_test.rb in ui_bibz-2.0.0.alpha15

- old
+ new

@@ -1,20 +1,20 @@ require 'test_helper' include UiBibz::Helpers class NavTest < ActionView::TestCase test 'Nav with tab' do - actual = UiBibz::Ui::Core::Nav.new(type: :tabs).tap do |n| + actual = UiBibz::Ui::Core::Navs::Nav.new(type: :tabs).tap do |n| n.link 'Home', state: :active, url: "#Home", selector: 'home' n.link 'Profile', url: "#profile", selector: 'profile' n.link 'Messages', url: "#messages", selector: 'messages' end.render expected = "<ul class=\"nav nav-tabs\"><li class=\"nav-item\"><a class=\"active nav-link\" data-toggle=\"tab\" role=\"tab\" href=\"#Home\">Home</a></li><li class=\"nav-item\"><a class=\"nav-link\" data-toggle=\"tab\" role=\"tab\" href=\"#profile\">Profile</a></li><li class=\"nav-item\"><a class=\"nav-link\" data-toggle=\"tab\" role=\"tab\" href=\"#messages\">Messages</a></li></ul>" assert_equal expected, actual end test 'Nav with pills' do - actual = UiBibz::Ui::Core::Nav.new(type: :pills, position: :justified).tap do |n| + actual = UiBibz::Ui::Core::Navs::Nav.new(type: :pills, position: :justified).tap do |n| n.link 'Home', state: :active, url: "#Home", selector: 'home' n.link 'Profile', url: "#profile", selector: 'profile', label: 16 n.link 'Messages', url: "#messages", selector: 'messages', state: :disabled end.render expected = "<ul class=\"nav nav-pills pull-justified\"><li class=\"nav-item\"><a class=\"active nav-link\" href=\"#Home\">Home</a></li><li class=\"nav-item\"><a class=\"nav-link\" href=\"#profile\">Profile<span class=\"label-default pull-right label label-pill\">16</span></a></li><li class=\"nav-item\"><a class=\"disabled nav-link\" href=\"#messages\">Messages</a></li></ul>"