From acd720b41fd444ef8f6e7f2cd456b02c845fe569 Mon Sep 17 00:00:00 2001 From: Nico Hagenburger Date: Fri, 15 Oct 2010 00:49:23 +0200 Subject: [PATCH] added spec for base class --- spec/sprites_spec.rb | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/spec/sprites_spec.rb b/spec/sprites_spec.rb index 212d5be3..1183fd05 100644 --- a/spec/sprites_spec.rb +++ b/spec/sprites_spec.rb @@ -86,7 +86,17 @@ describe Compass::Sprites do width: 20px; } CSS - + end + + it "should be possible to change the base class" do + css = render <<-SCSS + $squares-sprite-base-class: ".circles"; + @import "squares/*.png"; + SCSS + css.should == <<-CSS + .circles { + background: url('/squares.png') no-repeat; } + CSS end end \ No newline at end of file