spec/lib/roadie/style_declaration_spec.rb in roadie-2.3.4 vs spec/lib/roadie/style_declaration_spec.rb in roadie-2.4.0
- old
+ new
@@ -14,9 +14,13 @@
describe "string representation" do
it "is the property and the value joined with a colon" do
StyleDeclaration.new('color', 'green', false, 1).to_s.should == 'color:green'
StyleDeclaration.new('font-size', '1.1em', false, 1).to_s.should == 'font-size:1.1em'
end
+
+ it "contains the !important flag when set" do
+ StyleDeclaration.new('color', 'green', true, 1).to_s.should == 'color:green !important'
+ end
end
describe "comparing" do
def declaration(specificity, important = false)
StyleDeclaration.new('color', 'green', important, specificity)