spec/neat/columns_spec.rb in neat-1.2.1 vs spec/neat/columns_spec.rb in neat-1.3.0
- old
+ new
@@ -1,15 +1,13 @@
require 'spec_helper'
describe "@include span-columns()" do
- let (:identifier) {"span-columns"}
-
before(:all) do
- ParserSupport.parse_file(identifier)
+ ParserSupport.parse_file("span-columns")
end
- context "with argument '6' in a twelve-column grid" do
+ context "with argument (6) in a twelve-column grid" do
it "sets width in percentage" do
expect('.span-columns-default').to have_rule('width: 48.82117%')
end
it "sets gutter in percentage" do
@@ -37,25 +35,19 @@
it "sets relative gutter in percentage" do
expect('.span-columns-default .span-columns-nested').to have_rule('margin-right: 4.82916%')
end
end
- context "with argument 'table'" do
+ context "with argument (table)" do
it "sets display to table-cell" do
expect('.span-columns-table').to have_rule('display: table-cell')
end
it "sets padding in percentage" do
expect('.span-columns-table').to have_rule('padding-right: 2.35765%')
end
it "substracts gutter from width of last element" do
expect('.span-columns-table:last-child').to have_rule('width: 48.82117%')
- end
- end
-
- context "with argument 'inline-block'" do
- it "sets display to inline-block" do
- expect('.span-columns-inline-block').to have_rule('display: inline-block')
end
end
end