spec/sprockets-sass_spec.rb in sprockets-sass-0.4.2 vs spec/sprockets-sass_spec.rb in sprockets-sass-0.4.3

- old
+ new

@@ -140,46 +140,46 @@ it "adds dependencies when imported" do @assets.file "main.css.scss", %(@import "dep";\nbody { color: $color; }) dep = @assets.file "dep.css.scss", "$color: blue;" asset = @env["main.css"] - asset.should be_fresh + asset.should be_fresh(@env) mtime = Time.now + 1 dep.open("w") { |f| f.write "$color: red;" } dep.utime mtime, mtime - asset.should be_stale + asset.should_not be_fresh(@env) end it "adds dependencies from assets when imported" do @assets.file "main.css.scss", %(@import "dep1";\nbody { color: $color; }) @assets.file "dep1.css.scss", %(@import "dep2";\n) dep = @assets.file "dep2.css.scss", "$color: blue;" asset = @env["main.css"] - asset.should be_fresh + asset.should be_fresh(@env) mtime = Time.now + 1 dep.open("w") { |f| f.write "$color: red;" } dep.utime mtime, mtime - asset.should be_stale + asset.should_not be_fresh(@env) end it "adds dependencies when imported from a glob" do @assets.file "main.css.scss", %(@import "folder/*";\nbody { color: $color; background: $bg-color; }) @assets.file "folder/_dep1.scss", "$color: blue;" dep = @assets.file "folder/_dep2.scss", "$bg-color: red;" asset = @env["main.css"] - asset.should be_fresh + asset.should be_fresh(@env) mtime = Time.now + 1 dep.open("w") { |f| f.write "$bg-color: white;" } dep.utime mtime, mtime - asset.should be_stale + asset.should_not be_fresh(@env) end it "adds the #asset_path helper" do @assets.file "asset_path.css.scss", %(body { background: url(asset-path("image.jpg")); }) @assets.file "asset_url.css.scss", %(body { background: asset-url("image.jpg"); })