Sha256: c81bde00d4bafca57c4f6135384f095cb325418ac20857f94b5094f6d24a3780

Contents?: true

Size: 840 Bytes

Versions: 3

Compression:

Stored size: 840 Bytes

Contents

$LOAD_PATH.unshift File.expand_path('..', __FILE__) unless
  $LOAD_PATH.include? File.expand_path('..', __FILE__)
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) unless
  $LOAD_PATH.include? File.expand_path('../../lib', __FILE__)

require 'rubygems'
require 'win32/autogui'
require 'myapp'
require 'spec'
require 'spec/autorun'
require 'aruba/api'

# aruba helper, returns full path to files in the aruba tmp folder
def fullpath(filename)
  path = File.expand_path(File.join(current_dir, filename))
  path = `cygpath -w #{path}`.chomp if path.match(/^\/cygdrive/)  # cygwin?
  path
end

# return the contents of "filename" in the aruba tmp folder
def get_file_content(filename)
  in_current_dir do
    IO.read(filename)
  end
end

Spec::Runner.configure do |config|
   config.include Aruba::Api
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
win32-autogui-0.3.0 examples/skeleton/spec/spec_helper.rb
win32-autogui-0.2.1 examples/skeleton/spec/spec_helper.rb
win32-autogui-0.2.0 examples/skeleton/spec/spec_helper.rb