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