Sha256: 625d8f7ee6a225ed97d7ad29cd762ae772b97b531ea20674e87c6a0f87a6060e

Contents?: true

Size: 777 Bytes

Versions: 6

Compression:

Stored size: 777 Bytes

Contents

require 'pathname'
require 'fileutils'
require 'rake'
require 'rubygems'
require 'bundler/setup'
require 'bacon'

ROOT = Pathname.new(File.expand_path('../../', __FILE__))
$:.unshift(ENV['RUBYMOTION_CHECKOUT'] || "/Library/RubyMotion/lib")
$:.unshift((ROOT + 'lib').to_s)
require 'motion/project/template/osx'
require 'motion-sparkle'

Bacon.summary_at_exit

module SpecHelper
  def self.temporary_directory
    TemporaryDirectory.temporary_directory
  end

  module TemporaryDirectory
    def temporary_directory
      ROOT + 'tmp'
    end
    module_function :temporary_directory

    def setup_temporary_directory
      temporary_directory.mkpath
    end

    def teardown_temporary_directory
      temporary_directory.rmtree if temporary_directory.exist?
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
motion-sparkle-0.0.6 spec/spec_helper.rb
motion-sparkle-0.0.5 spec/spec_helper.rb
motion-sparkle-0.0.4 spec/spec_helper.rb
motion-sparkle-0.0.3 spec/spec_helper.rb
motion-sparkle-0.0.2 spec/spec_helper.rb
motion-sparkle-0.0.1 spec/spec_helper.rb