Sha256: 77d8a8b8058edeaa569a94112f9547ccd2dd5f0acb4b5bf673055248cf910a0d

Contents?: true

Size: 800 Bytes

Versions: 63

Compression:

Stored size: 800 Bytes

Contents

# frozen_string_literal: true

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

63 entries across 47 versions & 6 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/sassc-2.4.0/test/test_helper.rb
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.1.0/gems/sassc-2.4.0/test/test_helper.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/sassc-2.4.0/test/test_helper.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/sassc-2.4.0/test/test_helper.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/sassc-2.4.0/test/test_helper.rb
sassc-2.4.0-x64-mingw32 test/test_helper.rb
sassc-2.4.0 test/test_helper.rb
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/sassc-2.0.0/test/test_helper.rb
sassc-2.3.0-x64-mingw32 test/test_helper.rb
sassc-2.3.0 test/test_helper.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/sassc-2.2.1/test/test_helper.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/sassc-2.0.1/test/test_helper.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/sassc-2.1.0-x86_64-linux/test/test_helper.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/sassc-2.2.0/test/test_helper.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/sassc-2.2.0/test/test_helper.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/sassc-2.2.1/test/test_helper.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/sassc-2.1.0-x86_64-linux/test/test_helper.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/sassc-2.0.1/test/test_helper.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/sassc-2.1.0-x86_64-linux/test/test_helper.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/sassc-2.2.0/test/test_helper.rb