spec/linner/asset_spec.rb in linner-0.1.1 vs spec/linner/asset_spec.rb in linner-0.1.2
- old
+ new
@@ -1,8 +1,21 @@
require "spec_helper"
describe Asset do
before(:each) do
- @asset = Asset.new("app.js")
+ @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