Debian Codegraph @

spec/bourbon/library/ellipsis_spec.rb

raw
1 require "spec_helper"
2
3 describe "ellipsis" do
4 before(:all) do
5 ParserSupport.parse_file("library/ellipsis")
6 end
7
8 context "called on element" do
9 it "adds ellipsis" do
10 ruleset = "display: inline-block; " +
11 "max-width: 100%; " +
12 "overflow: hidden; " +
13 "text-overflow: ellipsis; " +
14 "white-space: nowrap; " +
15 "word-wrap: normal;"
16
17 expect(".ellipsis").to have_ruleset(ruleset)
18 end
19 end
20 end