Sha256: c06e65bac3194ba9067a15e82a3e8539762d09527f170f47b9408a434f0892d6

Contents?: true

Size: 636 Bytes

Versions: 7

Compression:

Stored size: 636 Bytes

Contents

require 'test_helper'

class ComponentDefTest < Test::Unit::TestCase
  context "The ComponentDef" do
    setup do
      @cd = Guilded::ComponentDef.new( 'grid' )
      @cd_exclude = Guilded::ComponentDef.new( 'grid', { :exclude_css => true, :exclude_js => true } )
    end

    should "exclude css if specified" do
      assert @cd_exclude.exclude_css?
    end
    
    should "exclude js if specified" do
      assert @cd_exclude.exclude_js?
    end

    should "not exclude css unless specified" do
      assert !@cd.exclude_css?
    end

    should "not exclude js unless specified" do
      assert !@cd.exclude_js?
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
guilded-1.0.6 test/guilded/component_def_test.rb
guilded-1.0.5 test/guilded/component_def_test.rb
guilded-1.0.4 test/guilded/component_def_test.rb
guilded-1.0.3 test/guilded/component_def_test.rb
guilded-1.0.2 test/guilded/component_def_test.rb
guilded-1.0.1 test/guilded/component_def_test.rb
guilded-1.0.0 test/guilded/component_def_test.rb