| 1 |
require "spec_helper" |
| 2 |
|
| 3 |
describe "shade" do |
| 4 |
before(:all) do |
| 5 |
ParserSupport.parse_file("library/shade") |
| 6 |
end |
| 7 |
|
| 8 |
context "called on white" do |
| 9 |
it "shades white" do |
| 10 |
expect(".shade-white").to have_rule("color: #404040") |
| 11 |
end |
| 12 |
end |
| 13 |
|
| 14 |
context "called on black" do |
| 15 |
it "still returns black" do |
| 16 |
expect(".shade-black").to have_rule("color: black") |
| 17 |
end |
| 18 |
end |
| 19 |
|
| 20 |
context "called on red" do |
| 21 |
it "shades red" do |
| 22 |
expect(".shade-red").to have_rule("color: #bf0000") |
| 23 |
end |
| 24 |
end |
| 25 |
|
| 26 |
context "called on gray" do |
| 27 |
it "shades gray" do |
| 28 |
expect(".shade-gray").to have_rule("color: #171717") |
| 29 |
end |
| 30 |
end |
| 31 |
end |