Sha256: 0accb30a5e0a9db4065ddd6c3aaec5ae1c6a1ddb31203c4d03aa094ad0120a49

Contents?: true

Size: 707 Bytes

Versions: 14

Compression:

Stored size: 707 Bytes

Contents

require 'test_helper'
require 'fileutils'
require 'sassc'

class CompilationTest < Minitest::Test
  def test_compilation_bootstrap
    compile 'bootstrap'
    assert true # nothing was raised
  end

  def test_compilation_bootstrap_theme
    compile 'bootstrap/theme'
    assert true # nothing was raised
  end

  private

  def compile(file)
    path = File.expand_path('../assets/stylesheets', __dir__)
    FileUtils.rm_rf('.sass-cache', secure: true)
    engine = SassC::Engine.new(
      %Q{@import "#{path}/#{file}"},
      syntax: :scss, load_paths: ['.']
    )
    FileUtils.mkdir_p("tmp/#{File.dirname(file)}")
    File.open("tmp/#{file}.css", 'w') { |f|
      f.write engine.render
    }
  end
end

Version data entries

14 entries across 14 versions & 3 rubygems

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