| 1 |
require "spec_helper" |
| 2 |
|
| 3 |
describe "border-radius" do |
| 4 |
before(:all) do |
| 5 |
ParserSupport.parse_file("library/border-radius") |
| 6 |
end |
| 7 |
|
| 8 |
context "called with one argument" do |
| 9 |
it "applies to correct sides" do |
| 10 |
top = "border-top-left-radius: 1em; " + |
| 11 |
"border-top-right-radius: 1em;" |
| 12 |
left = "border-bottom-left-radius: 2em; " + |
| 13 |
"border-top-left-radius: 2em;" |
| 14 |
right = "border-bottom-right-radius: 3em; " + |
| 15 |
"border-top-right-radius: 3em;" |
| 16 |
bottom = "border-bottom-left-radius: 4em; " + |
| 17 |
"border-bottom-right-radius: 4em;" |
| 18 |
|
| 19 |
expect(".border-top-radius").to have_ruleset(top) |
| 20 |
expect(".border-left-radius").to have_ruleset(left) |
| 21 |
expect(".border-right-radius").to have_ruleset(right) |
| 22 |
expect(".border-bottom-radius").to have_ruleset(bottom) |
| 23 |
end |
| 24 |
end |
| 25 |
end |