Sha256: 597bf94975dbd5c28e6cf33a11b9a04284b137cf8d2d656536c8a50e84fa71d6

Contents?: true

Size: 769 Bytes

Versions: 31

Compression:

Stored size: 769 Bytes

Contents

require "minitest/autorun"
require "minitest/pride"
require "minitest/around/unit"
require "test_construct"
require "pry"

require "sassc"

module FixtureHelper
  FIXTURE_ROOT = File.expand_path(File.join(File.dirname(__FILE__), "fixtures"))

  def fixture(path)
    IO.read(fixture_path(path))
  end

  def fixture_path(path)
    if path.match(FIXTURE_ROOT)
      path
    else
      File.join(FIXTURE_ROOT, path)
    end
  end
end

module TempFileTest
  include TestConstruct::Helpers

  def around
    within_construct do |construct|
      @construct = construct
      yield
    end
    @construct = nil
  end

  def temp_file(filename, contents)
    @construct.file(filename, contents)
  end

  def temp_dir(directory)
    @construct.directory(directory)
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
sassc-1.12.1 test/test_helper.rb
sassc-1.12.0 test/test_helper.rb
sassc-1.11.4 test/test_helper.rb
sassc-1.11.3 test/test_helper.rb
sassc-1.11.2 test/test_helper.rb
sassc-1.11.1 test/test_helper.rb
sassc-1.11.0 test/test_helper.rb
sassc-1.10.1 test/test_helper.rb
sassc-1.10.0 test/test_helper.rb
sassc-1.9.0 test/test_helper.rb
sassc-1.8.5 test/test_helper.rb
sassc-1.8.4 test/test_helper.rb
sassc-1.8.3 test/test_helper.rb
sassc-1.8.2 test/test_helper.rb
sassc-1.8.1 test/test_helper.rb
sassc-1.8.0 test/test_helper.rb
sassc-1.8.0.pre2 test/test_helper.rb
sassc-1.8.0.pre1 test/test_helper.rb
sassc-1.7.1 test/test_helper.rb
sassc-1.7.0 test/test_helper.rb