Sha256: 2c345999a53c07a7daf8b8b90c170ab77123eb917cb4520d5215a2dfe69ae8bb
Contents?: true
Size: 525 Bytes
Versions: 37
Compression:
Stored size: 525 Bytes
Contents
require 'test_helper' module PushType class MenuBuilderTest < ActiveSupport::TestCase before { MenuBuilder.class_variable_set :@@menus, {} } after { MenuBuilder.class_variable_set :@@menus, {} } describe '.select' do it 'should create a new menu' do MenuBuilder.select(:foo).must_be_instance_of MenuBuilder::Menu end it 'should use existing menu if present' do menu = MenuBuilder.select(:bar) MenuBuilder.select(:bar).must_equal menu end end end end
Version data entries
37 entries across 37 versions & 1 rubygems