Sha256: cc9e988a438bff1a4c065fa7f5d786991a62fb07b27e770a7c6a40f0ade541d9

Contents?: true

Size: 623 Bytes

Versions: 26

Compression:

Stored size: 623 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper.rb'

describe "ComponentDef" do
  
  before(:each) do
    @cd = Guilded::ComponentDef.new( 'grid' )
    @cd_exclude = Guilded::ComponentDef.new( 'grid', { :exclude_css => true, :exclude_js => true } )
  end
  
  it "should exclude css if specified" do
    @cd_exclude.should be_exclude_css
  end
  
  it "should exclude js if specified" do
    @cd_exclude.should be_exclude_js
  end
  
  it "should not exclude css unless specified" do
    @cd.should_not be_exclude_css
  end
  
  it "should not exclude js unless specified" do
    @cd.should_not be_exclude_js
  end
  
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
midas-guilded-0.0.1 spec/guilded/component_def_spec.rb
midas-guilded-0.0.2 spec/guilded/component_def_spec.rb
midas-guilded-0.0.3 spec/guilded/component_def_spec.rb
midas-guilded-0.0.4 spec/guilded/component_def_spec.rb
midas-guilded-0.0.5 spec/guilded/component_def_spec.rb
midas-guilded-0.0.6 spec/guilded/component_def_spec.rb
midas-guilded-0.0.7 spec/guilded/component_def_spec.rb
midas-guilded-0.0.8 spec/guilded/component_def_spec.rb
midas-guilded-0.0.9 spec/guilded/component_def_spec.rb
midas-guilded-0.1.0 spec/guilded/component_def_spec.rb
midas-guilded-0.1.1 spec/guilded/component_def_spec.rb
midas-guilded-0.1.2 spec/guilded/component_def_spec.rb
midas-guilded-0.1.3 spec/guilded/component_def_spec.rb
midas-guilded-0.1.4 spec/guilded/component_def_spec.rb
midas-guilded-0.1.8 spec/guilded/component_def_spec.rb
midas-guilded-0.1.9 spec/guilded/component_def_spec.rb
midas-guilded-0.2.0 spec/guilded/component_def_spec.rb
midas-guilded-0.2.1 spec/guilded/component_def_spec.rb
midas-guilded-0.2.3 spec/guilded/component_def_spec.rb
midas-guilded-0.2.4 spec/guilded/component_def_spec.rb