Sha256: bb0ae00ff530ee027c3513ed1cee8f9b251af65345d47bcc5af8265a92dc850e

Contents?: true

Size: 813 Bytes

Versions: 14

Compression:

Stored size: 813 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'
require 'shellwords'
require 'fileutils'
require 'bootstrap-sass'

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

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

  def setup
    FileUtils.rm_rf(File.join(DUMMY_PATH, '.sass-cache'), secure: true)
    css_path = File.join GEM_PATH, 'tmp/bootstrap-sass-only.css'
    success  = Dir.chdir DUMMY_PATH do
      silence_stdout_if !ENV['VERBOSE'] do
        Bundler.with_original_env do
          system('bundle') && system('bundle', 'exec', 'ruby', 'compile.rb',
                                     Bootstrap.stylesheets_path, css_path)
        end
      end
    end
    assert success, 'Sass-only compilation failed'
    @css = File.read(css_path)
  end
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
entreprise7pro-bootstrap-sass-3.4.7 test/sass_test.rb
entreprise7pro-bootstrap-sass-3.4.6 test/sass_test.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/bootstrap-sass-3.4.1/test/sass_test.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/bootstrap-sass-3.4.1/test/sass_test.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/bootstrap-sass-3.4.1/test/sass_test.rb
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/bootstrap-sass-3.4.1/test/sass_test.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/bootstrap-sass-3.4.1/test/sass_test.rb
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/bootstrap-sass-3.4.1/test/sass_test.rb
zuora_connect_ui-0.8.1 vendor/ruby/2.6.0/gems/bootstrap-sass-3.4.1/test/sass_test.rb
zuora_connect_ui-0.8.0 vendor/ruby/2.6.0/gems/bootstrap-sass-3.4.1/test/sass_test.rb
zuora_connect_ui-0.7.1 vendor/ruby/2.6.0/gems/bootstrap-sass-3.4.1/test/sass_test.rb
zuora_connect_ui-0.7.0 vendor/ruby/2.6.0/gems/bootstrap-sass-3.4.1/test/sass_test.rb
bootstrap-sass-3.4.1 test/sass_test.rb
bootstrap-sass-3.4.0 test/sass_test.rb