Debian Codegraph @

spec/bourbon/library/strip_unit_spec.rb

raw
1 require "spec_helper"
2
3 describe "strip-unit" do
4 before(:all) do
5 ParserSupport.parse_file("library/strip-unit")
6 end
7
8 context "called with px" do
9 it "strips units" do
10 expect(".px").to have_rule("width: 10")
11 end
12 end
13
14 context "called with em" do
15 it "strips units" do
16 expect(".em").to have_rule("width: 2")
17 end
18 end
19
20 context "called with rem" do
21 it "strips units" do
22 expect(".rem").to have_rule("width: 1.5")
23 end
24 end
25
26 context "called with percent" do
27 it "strips units" do
28 expect(".percent").to have_rule("width: 20")
29 end
30 end
31 end