Sha256: 57fa71c32fd6e909d392ad753a4aab8935ebe421cba63e29db2f839269414ae1

Contents?: true

Size: 819 Bytes

Versions: 4

Compression:

Stored size: 819 Bytes

Contents

require 'spec_helper'

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

  describe 'application.css' do

    let(:app_css) { dummy_asset('application.css') }

    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

4 entries across 4 versions & 1 rubygems

Version Path
bootstrap-sass-rails-2.3.2.0 test/cases/less_to_sass_spec.rb
bootstrap-sass-rails-2.3.1.2 test/cases/less_to_sass_spec.rb
bootstrap-sass-rails-2.2.2.1 test/cases/less_to_sass_spec.rb
bootstrap-sass-rails-2.3.1.1 test/cases/less_to_sass_spec.rb