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

Version Path
netzke-basepack-0.7.7 test/unit/accordion_panel_test.rb
netzke-basepack-zh-0.7.6 test/unit/accordion_panel_test.rb
netzke-basepack-0.7.6 test/unit/accordion_panel_test.rb
netzke-basepack-0.7.5 test/unit/accordion_panel_test.rb
netzke-basepack-0.7.4 test/unit/accordion_panel_test.rb
netzke-basepack-0.7.3 test/unit/accordion_panel_test.rb
netzke-basepack-0.7.2 test/unit/accordion_panel_test.rb
netzke-basepack-0.7.1 test/unit/accordion_panel_test.rb
netzke-basepack-0.6.5 test/unit/accordion_panel_test.rb
netzke-basepack-0.7.0 test/unit/accordion_panel_test.rb
netzke-basepack-0.6.4 test/unit/accordion_panel_test.rb
netzke-basepack-0.6.3 test/unit/accordion_panel_test.rb
netzke-basepack-0.6.2 test/unit/accordion_panel_test.rb
netzke-basepack-0.6.1 test/unit/accordion_panel_test.rb