Debian Codegraph @

spec/bourbon/library/overflow_wrap_spec.rb

raw
1 require "spec_helper"
2
3 describe "overflow-wrap" do
4 before(:all) do
5 ParserSupport.parse_file("library/overflow-wrap")
6 end
7
8 context "called on element" do
9 it "adds overflow-wrap and word-wrap" do
10 input = ".overflow-wrap"
11 ruleset = "word-wrap: break-word; " +
12 "overflow-wrap: break-word;"
13
14 expect(input).to have_ruleset(ruleset)
15 end
16 end
17
18 context "called on element with normal" do
19 it "sets values as normal" do
20 input = ".overflow-wrap-normal"
21 ruleset = "word-wrap: normal; " +
22 "overflow-wrap: normal;"
23
24 expect(input).to have_ruleset(ruleset)
25 end
26 end
27 end