Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added test for border radius swap

  • Loading branch information...
commit 6eb0212d4fff021e393f0ea4b2ed998075398587 1 parent 4dcf64d
@esten esten authored
Showing with 14 additions and 0 deletions.
  1. +14 −0 spec/r2_spec.rb
View
14 spec/r2_spec.rb
@@ -97,4 +97,18 @@
@r2.quad_swap("1px 2px").should == "1px 2px"
end
end
+
+ context "border_radius_swap" do
+ it "should swap a valid quad value" do
+ @r2.border_radius_swap("1px 2px 3px 4px").should == "2px 1px 4px 3px"
+ end
+
+ it "should skip a triple value" do
+ @r2.border_radius_swap("1px 2px 3px").should == "2px 1px 2px 3px"
+ end
+
+ it "should skip a pair value" do
+ @r2.border_radius_swap("1px 2px").should == "2px 1px"
+ end
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.