Sha256: c07d56e85ab012c77adb5e5a98308f441220c248d7b07cc3ecd2bba32aae6f0e

Contents?: true

Size: 668 Bytes

Versions: 8

Compression:

Stored size: 668 Bytes

Contents

require File.expand_path( File.join( File.dirname(__FILE__), '..', 'spec_helper' ) )

describe Guilded::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.exclude_css?.should be_true
  end
  
  it "should exclude js if specified" do
    @cd_exclude.exclude_js?.should be_true
  end

  it "should not exclude css unless specified" do
    @cd.exclude_css?.should be_false
  end

  it "should not exclude js unless specified" do
    @cd.exclude_js?.should be_false
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
guilded-1.1.0 spec/guilded/component_def_spec.rb
guilded-1.0.14 spec/guilded/component_def_spec.rb
guilded-1.0.13 spec/guilded/component_def_spec.rb
guilded-1.0.12 spec/guilded/component_def_spec.rb
guilded-1.0.10 spec/guilded/component_def_spec.rb
guilded-1.0.9 spec/guilded/component_def_spec.rb
guilded-1.0.8 spec/guilded/component_def_spec.rb
guilded-1.0.7 spec/guilded/component_def_spec.rb