Sha256: fdcb3a53bb071031a5c44d0a7d554a085dceb9ed393a5e3940fda4471698c186

Contents?: true

Size: 646 Bytes

Versions: 15

Compression:

Stored size: 646 Bytes

Contents

require 'test_helper'
require 'shellwords'

class SassTest < Minitest::Test
  DUMMY_PATH = 'test/dummy_sass_only'

  def test_font_helper
    assert_match %r(url\(['"]?.*eot['"]?\)), @css
  end

  def setup
    Dir.chdir DUMMY_PATH do
      %x[rm -rf .sass-cache/]
      %x[bundle]
    end
    css_path = File.join GEM_PATH, 'tmp/bootstrap-sass-only.css'
    command  = "bundle exec ruby compile.rb #{Shellwords.escape css_path}"
    success  = Dir.chdir DUMMY_PATH do
      silence_stdout_if !ENV['VERBOSE'] do
        system(command)
      end
    end
    assert success, 'Sass-only compilation failed'
    @css = File.read(css_path)
  end
end

Version data entries

15 entries across 15 versions & 3 rubygems

Version Path
bootstrap-sass-3.2.0.4 test/sass_test.rb
bootstrap-sass-3.3.7 test/sass_test.rb
bootstrap-sass-3.3.6 test/sass_test.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/bootstrap-sass-3.3.5.1/test/sass_test.rb
bootstrap-sass-3.3.5.1 test/sass_test.rb
bootstrap-sass-3.3.5 test/sass_test.rb
bootstrap-sass-3.3.4.1 test/sass_test.rb
bootstrap-sass-3.3.3 test/sass_test.rb
bootstrap-sass-3.3.2.1 test/sass_test.rb
bootstrap-sass-3.3.2.0 test/sass_test.rb
bootstrap-sass-backport-3.3.1.0 test/sass_test.rb
bootstrap-sass-3.3.1.0 test/sass_test.rb
bootstrap-sass-3.3.0.1 test/sass_test.rb
bootstrap-sass-3.3.0.0 test/sass_test.rb
bootstrap-sass-backport-3.2.0.2 test/sass_test.rb