require 'test_helper' include UiBibz::Helpers class NavTest < ActionView::TestCase test 'Nav with tab' do actual = UiBibz::Ui::Core::Nav.new().tap do |n| n.link 'Home', status: :active, url: "#Home", selector: 'home' n.link 'Profile', url: "#profile", selector: 'profile' n.link 'Messages', url: "#messages", selector: 'messages' end.render expected = "" assert_equal expected, actual end test 'Nav with pills' do actual = UiBibz::Ui::Core::Nav.new(type: :pills, position: :justified).tap do |n| n.link 'Home', status: :active, url: "#Home", selector: 'home' n.link 'Profile', url: "#profile", selector: 'profile', badge: 16 n.link 'Messages', url: "#messages", selector: 'messages', status: :disabled end.render expected = "" assert_equal expected, actual end end