Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

dsgn1graphics / verve-bootstrap-sass   ruby

Repository URL to install this package:

Version: 3.3.3 

/ test / sass_test.rb

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