spec/rails_spec.rb in rails-sass-images-0.4 vs spec/rails_spec.rb in rails-sass-images-0.5

- old
+ new

@@ -28,21 +28,32 @@ get :test, file: 'image-size' response.should be_success response.body.should == ".icon{width:4px;height:6px}\n" end + it "has hidpi-background mixin" do + get :test, file: 'hidpi-background' + response.should be_success + response.body.should == ".icon{" + + "background-image:url(/assets/monolith.png);" + + "background-size:2px 3px}\n" + end + it "has hidpi-image mixin" do get :test, file: 'hidpi-image' response.should be_success - response.body.should == ".icon{width:2px;height:3px;" + - "background:url(/assets/monolith.png) no-repeat;" + - "background-size:2px 3px}\n" + response.body.should == ".icon{" + + "width:2px;height:3px;" + + "background-image:url(/assets/monolith.png);" + + "background-size:2px 3px;" + + "background-repeat:no-repeat}\n" end it "has hidpi-inline mixin" do get :test, file: 'hidpi-inline' response.should be_success - response.body.should == ".icon{width:2px;height:3px;" + + response.body.should == ".icon{" + + "width:2px;height:3px;" + "background:#{INLINE} no-repeat;" + "background-size:2px 3px}\n" end end