Sha256: 78f22921ae1fa23ef47a53edaa4312e3b228033e9dab3cf409f8cf79c549317e

Contents?: true

Size: 427 Bytes

Versions: 5

Compression:

Stored size: 427 Bytes

Contents

require "spec_helper"

describe Asset do

  before(:each) do
    @asset = Asset.new("app/scripts/app.js")
  end

  describe :logical_path do
    it "should be return right logical_path" do
      @asset.logical_path.should == "app.js"
    end
  end

  describe :wrappable do
    it "should wrapperable" do
      @asset.wrappable?.should be_true
      Asset.new("app/styles/app.css").wrappable?.should be_false
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
linner-0.2.0 spec/linner/asset_spec.rb
linner-0.1.5 spec/linner/asset_spec.rb
linner-0.1.4 spec/linner/asset_spec.rb
linner-0.1.3 spec/linner/asset_spec.rb
linner-0.1.2 spec/linner/asset_spec.rb