Debian Codegraph @

spec/bourbon/library/triangle_spec.rb

raw
1 require "spec_helper"
2
3 describe "triangle" do
4 before(:all) do
5 ParserSupport.parse_file("library/triangle")
6 end
7
8 context "called with defaults" do
9 it "outputs the properties" do
10 ruleset = "border-style: solid; " +
11 "height: 0; " +
12 "width: 0; " +
13 "border-color: transparent transparent #b25c9c; " +
14 "border-width: 0 1rem 1rem;"
15
16 expect(".triangle--up").to have_ruleset(ruleset)
17 end
18 end
19
20 context "called with arguments" do
21 it "outputs the properties" do
22 ruleset = "border-style: solid; " +
23 "height: 0; " +
24 "width: 0; " +
25 "border-color: transparent transparent transparent #aaa; " +
26 "border-width: 6px 0 6px 5px;"
27
28 expect(".triangle--right").to have_ruleset(ruleset)
29 end
30 end
31 end