Sha256: 73c9556c33dfb4e3d88f52814d6ab3b34d7d29160e2d32aa11f52f188797e4b6

Contents?: true

Size: 578 Bytes

Versions: 4

Compression:

Stored size: 578 Bytes

Contents

require "spec_helper"

describe Asset do

  before(:each) do
    @script_asset = Asset.new("app/scripts/app.js")
    @style_asset = Asset.new("app/styles/app.css")
  end

  it "should be return right logical_path" do
    @script_asset.logical_path.should == "app.js"
    @style_asset.logical_path.should == "app.css"
  end

  it "should be javascript" do
    @script_asset.javascript?.should be_true
    @style_asset.stylesheet?.should be_true
  end

  it "should wrapperable" do
    @script_asset.wrappable?.should be_true
    @style_asset.wrappable?.should be_false
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
linner-0.4.0 spec/linner/asset_spec.rb
linner-0.3.2 spec/linner/asset_spec.rb
linner-0.3.1 spec/linner/asset_spec.rb
linner-0.3.0 spec/linner/asset_spec.rb