Sha256: d89e8f0bf84390c5cf69124a1b6f89d4ff72828a604eacb39aa7baae35b38877

Contents?: true

Size: 984 Bytes

Versions: 2

Compression:

Stored size: 984 Bytes

Contents

require 'spec_helper'

describe "@include row()" do
  let (:identifier) {"row"}

  before(:all) do
    ParserSupport.parse_file(identifier)
  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

2 entries across 2 versions & 1 rubygems

Version Path
neat-1.2.1 spec/neat/row_spec.rb
neat-1.2.0 spec/neat/row_spec.rb