Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added test for border radius swap

  • Loading branch information...
commit 6eb0212d4fff021e393f0ea4b2ed998075398587 1 parent 4dcf64d
esten authored November 15, 2012

Showing 1 changed file with 14 additions and 0 deletions. Show diff stats Hide diff stats

  1. 14  spec/r2_spec.rb
14  spec/r2_spec.rb
@@ -97,4 +97,18 @@
97 97
       @r2.quad_swap("1px 2px").should == "1px 2px"
98 98
     end
99 99
   end
  100
+
  101
+  context "border_radius_swap" do
  102
+    it "should swap a valid quad value" do
  103
+      @r2.border_radius_swap("1px 2px 3px 4px").should == "2px 1px 4px 3px"
  104
+    end
  105
+
  106
+    it "should skip a triple value" do
  107
+      @r2.border_radius_swap("1px 2px 3px").should == "2px 1px 2px 3px"
  108
+    end
  109
+
  110
+    it "should skip a pair value" do
  111
+      @r2.border_radius_swap("1px 2px").should == "2px 1px"
  112
+    end
  113
+  end
100 114
 end

0 notes on commit 6eb0212

Please sign in to comment.
Something went wrong with that request. Please try again.