Sha256: a854c7c973eda1c21d6e5f43b340fad3809d721d0ea2db79e122e1ebc7e88d5d

Contents?: true

Size: 708 Bytes

Versions: 1

Compression:

Stored size: 708 Bytes

Contents

# frozen_string_literal: true

require 'rake'
require 'pry'

ROOT = Pathname.new(File.expand_path('..', __dir__))
$:.unshift(ENV['RUBYMOTION_CHECKOUT'] || '/Library/RubyMotion/lib')
$:.unshift("#{ROOT}lib".to_s)

# need to ensure that we bypass the `app.pods` in `lib/motion-sparkle-sandbox.rb`
@running_specs = 1

require 'motion/project/template/osx'
require 'motion-sparkle-sandbox'

module SpecUtils
  module TemporaryDirectory
    TEMPORARY_DIRECTORY = ROOT + 'tmp' # rubocop:disable Style/StringConcatenation

    def self.directory
      TEMPORARY_DIRECTORY
    end

    def self.setup
      directory.mkpath
    end

    def self.teardown
      directory.rmtree if directory.exist?
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
motion-sparkle-sandbox-2.0.1 spec/spec_utils.rb