spec/neat/columns_spec.rb in neat-1.4.0 vs spec/neat/columns_spec.rb in neat-1.5.0.pre
- old
+ new
@@ -45,19 +45,29 @@
it "sets padding evenly between table cells" do
expect('.span-columns-table').to have_rule('padding-right: 1.17883%')
end
end
- context "with argument (collapse)" do
+ context "with argument (block-collapse)" do
it "appends gutter width to column width" do
expect('.span-columns-collapse').to have_rule('width: 51.17883%')
end
it "removes the next gutter" do
- expect('.span-columns-collapse').to_not have_rule('margin-right')
+ expect('.span-columns-collapse').to_not have_rule('margin-right: 2.35765%')
end
it "removes gutter percentage from the width of the last child" do
expect('.span-columns-collapse:last-child').to have_rule('width: 48.82117%')
+ end
+ end
+
+ context "with argument (no-display)" do
+ it "doesn't set display property" do
+ expect('.span-columns-no-display').to_not have_rule('display: block')
+ end
+
+ it "sets width in percentage based on a block layout" do
+ expect('.span-columns-no-display').to have_rule('width: 48.82117%')
end
end
end