Sha256: d95b9b7fc55363ecbd417bf7f09b2f84507afa62fb5c76493bfd668ec65d002e

Contents?: true

Size: 548 Bytes

Versions: 11

Compression:

Stored size: 548 Bytes

Contents

require "test_helper"

module PushType
  module MenuBuilder
    describe Dsl::Menu do

      let(:menu) { MenuBuilder::Menu.new }

      describe '.build' do
        before do
          MenuBuilder::Dsl::Menu.build(menu) do
            element :div
            html_options class: 'foo-bar'
            active_class 'foo-active'
          end
        end

        it { menu.element.must_equal :div }
        it { menu.html_options[:class].must_equal 'foo-bar' }
        it { menu.active_class.must_equal 'foo-active' }
      end

    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
push_type_core-0.5.1 test/lib/push_type/menu_builder/menu_dsl_test.rb
push_type_core-0.5.0 test/lib/push_type/menu_builder/menu_dsl_test.rb
push_type_core-0.5.0.alpha.5 test/lib/push_type/menu_builder/menu_dsl_test.rb
push_type_core-0.5.0.alpha.4 test/lib/push_type/menu_builder/menu_dsl_test.rb
push_type_core-0.5.0.alpha.3 test/lib/push_type/menu_builder/menu_dsl_test.rb
push_type_core-0.5.0.alpha.2 test/lib/push_type/menu_builder/menu_dsl_test.rb
push_type_core-0.5.0.alpha.1 test/lib/push_type/menu_builder/menu_dsl_test.rb
push_type_core-0.4.0 test/lib/push_type/menu_builder/menu_dsl_test.rb
push_type_core-0.4.0.beta.3 test/lib/push_type/menu_builder/menu_dsl_test.rb
push_type_core-0.3.3 test/lib/push_type/menu_builder/menu_dsl_test.rb
push_type_core-0.3.1 test/lib/push_type/menu_builder/menu_dsl_test.rb