Sha256: 5e84efc7609ba5c219ce003cdc7720a25a4058abc548fa5d3884870de98e7127
Contents?: true
Size: 658 Bytes
Versions: 19
Compression:
Stored size: 658 Bytes
Contents
require 'test_helper' require 'rubygems' require 'netzke-core' class TabPanelTest < ActiveSupport::TestCase test "active item" do tab_panel = Netzke::TabPanel.new(:items => [{ :class_name => "Panel" },{ :class_name => "Panel", :name => "second_panel", :active => true }]) assert_equal(2, tab_panel.initial_components.keys.size) assert_equal("item0", tab_panel.components[:item0][:name]) assert_equal("second_panel", tab_panel.components[:second_panel][:name]) assert(tab_panel.components[:second_panel][:active]) assert_equal("Panel", tab_panel.js_config[:second_panel_config][:scoped_class_name]) end end
Version data entries
19 entries across 19 versions & 2 rubygems