This repository has been archived by the owner on Jul 14, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 429
/
omega_spec.rb
57 lines (47 loc) · 1.48 KB
/
omega_spec.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
require 'spec_helper'
describe "@include omega()" do
let (:identifier) {"omega"}
before(:all) do
ParserSupport.parse_file(identifier)
end
context "with no argument" do
it "removes right margin" do
expect('.omega-default').to have_rule('margin-right: 0')
end
end
context "with argument 'table'" do
it "removes right padding" do
expect('.omega-table').to have_rule('padding-right: 0')
end
end
context "with argument 'block, left'" do
it "removes left margin" do
expect('.omega-block-left').to have_rule('margin-left: 0')
end
end
context "with argument 'table, left'" do
it "removes left padding" do
expect('.omega-table-left').to have_rule('padding-left: 0')
end
end
context "with argument '4n'" do
it "removes right margin of nth-child(4n)" do
expect('.omega-nth-default:nth-child(4n)').to have_rule('margin-right: 0')
end
end
context "with argument '4n table'" do
it "removes right padding of nth-child(4n)" do
expect('.omega-nth-table:nth-child(4n)').to have_rule('padding-right: 0')
end
end
context "with argument '4n block, left'" do
it "removes left margin of nth-child(4n)" do
expect('.omega-nth-default-left:nth-child(4n)').to have_rule('margin-left: 0')
end
end
context "with argument '4n table, left'" do
it "removes left padding of nth-child(4n)" do
expect('.omega-nth-table-left:nth-child(4n)').to have_rule('padding-left: 0')
end
end
end