Sha256: cb46ebe80484c3a6587b6f9be15d6adc351c0e7d63e9f399d08b0515ed2dd601
Contents?: true
Size: 1.04 KB
Versions: 4
Compression:
Stored size: 1.04 KB
Contents
require "test_helper" module Guts class NavigationItemTest < ActiveSupport::TestCase test "should not create without title" do navigation = NavigationItem.new assert_not navigation.save end test "should return metafields for navigation" do navigation = guts_navigation_items :test_navigation_item assert_operator navigation.metafields.size, :>, 0 end test "should return navigation" do navigation = guts_navigation_items :test_navigation_item assert navigation.navigation end test "should return navigatable" do navigation = guts_navigation_items :test_navigation_item assert navigation.navigatable end test "should not be custom" do navigation = guts_navigation_items :test_navigation_item assert_equal false, navigation.is_custom? end test "should be custom" do navigation = guts_navigation_items :test_navigation_item_two assert_equal true, navigation.is_custom? end end end
Version data entries
4 entries across 4 versions & 1 rubygems