| 1 |
require "spec_helper" |
| 2 |
|
| 3 |
describe "directional-property" do |
| 4 |
before(:all) do |
| 5 |
ParserSupport.parse_file("utilities/directional-property") |
| 6 |
end |
| 7 |
|
| 8 |
context "directional-property" do |
| 9 |
it "returns property and values with four distinct lengths" do |
| 10 |
expect(".border-all").to have_rule("border-width: 2px 5px 8px 12px") |
| 11 |
end |
| 12 |
|
| 13 |
it "returns property and value with one length" do |
| 14 |
expect(".border-top").to have_rule("border-top: 10px") |
| 15 |
end |
| 16 |
|
| 17 |
it "returns property and value with vertical and horizontal values" do |
| 18 |
expect(".border-color").to have_rule("border-color: #fff #000") |
| 19 |
end |
| 20 |
|
| 21 |
it "returns properties for top and bottom margin" do |
| 22 |
ruleset = "margin-top: 20px; " + |
| 23 |
"margin-bottom: 10px;" |
| 24 |
|
| 25 |
expect(".margin-null").to have_ruleset(ruleset) |
| 26 |
end |
| 27 |
end |
| 28 |
end |