Sha256: ee1be8b7bedb4a392366304a3f6cfd41f2b0829d86065763b27dc02fc25bbbde

Contents?: true

Size: 839 Bytes

Versions: 1

Compression:

Stored size: 839 Bytes

Contents

require 'spec_helper'

class LessToSassSpec < Bootstrap::Sass::Rails::Spec

  describe 'application.css' do

    let(:app_css) { dummy_asset('application.css').gsub(/\n+\s+/, ' ') }

    it 'should include a class for block level inputs' do
      app_css.must_include '.input-block-level {'
    end

    it 'should include the clearfix helper classes' do
      app_css.must_include '.clearfix { *zoom: 1; }'
      app_css.must_include '.clearfix:before, .clearfix:after { display: table; content: ""; line-height: 0; }'
      app_css.must_include '.clearfix:after { clear: both; }'
    end

  end

  private

  def line_for_framework_css(name)
    framework_css.each_line.detect{ |line| line.include? name }.strip
  end

  def line_for_individual_css(name)
    individual_css.each_line.detect{ |line| line.include? name }.strip
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bootstrap-sass-rails-2.3.2.1 test/cases/less_to_sass_spec.rb