Sha256: 386bcfc1bee2e07621e0bcbf6a92419fcfded350082c5e2c7914cfa1df4a5a8c
Contents?: true
Size: 618 Bytes
Versions: 14
Compression:
Stored size: 618 Bytes
Contents
require 'test_helper' require 'rubygems' require 'netzke-core' class AccordionPanelTest < ActiveSupport::TestCase test "specifying items" do accordion = Netzke::AccordionPanel.new(:items => [{ :class_name => "Panel" },{ :class_name => "Panel", :name => "second_panel", :active => true }]) assert_equal(2, accordion.initial_components.keys.size) assert_equal("item0", accordion.components[:item0][:name]) assert_equal("second_panel", accordion.components[:second_panel][:name]) assert_equal("Panel", accordion.js_config[:second_panel_config][:scoped_class_name]) end end
Version data entries
14 entries across 14 versions & 2 rubygems