Sha256: e642fb6741b3dcef5ca684ad555bbf81522578b2b962fd6aa12097b80e2e3825

Contents?: true

Size: 950 Bytes

Versions: 16

Compression:

Stored size: 950 Bytes

Contents

require 'spec_helper'

describe "@include row()" do
  before(:all) do
    ParserSupport.parse_file("row")
  end

  context "with no argument" do
    it "adds clearfix" do
      expect('.row-default:after').to have_rule('clear: both')
    end

    it "sets display to block" do
      expect('.row-default').to have_rule('display: block')
    end
  end

  context "with argument (table)" do
    it "sets display to table" do
      expect('.row-table').to have_rule('display: table')
    end

    it "forces table-cell display on child elements" do
      expect('.row-table-reset .block-child').to have_rule('display: table-cell')
    end
  end

  context "with reset-display()" do
    it "resets display to block" do
      expect('.no-row').to have_rule('display: block')
    end
  end

  context "with invalid display argument" do
    it "sets display to block" do
      expect('.row-invalid-display').to have_rule('display: block')
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
neat-1.7.0 spec/neat/row_spec.rb
neat-1.7.0.rc spec/neat/row_spec.rb
neat-1.7.0.pre spec/neat/row_spec.rb
poxy-0.0.6 spec/poxy/row_spec.rb
poxy-0.0.5 spec/poxy/row_spec.rb
poxy-0.0.4 spec/poxy/row_spec.rb
poxy-0.0.1 spec/poxy/row_spec.rb
poxy-0.0.0 spec/poxy/row_spec.rb
neat-1.5.1 spec/neat/row_spec.rb
neat-1.6.0 spec/neat/row_spec.rb
neat-1.6.0.pre2 spec/neat/row_spec.rb
neat-1.6.0.pre spec/neat/row_spec.rb
neat-1.5.0 spec/neat/row_spec.rb
neat-1.5.0.pre spec/neat/row_spec.rb
neat-1.4.0 spec/neat/row_spec.rb
neat-1.3.0 spec/neat/row_spec.rb