Sha256: 216e88fc9f0a05e0fd5536b66270a2e01c4056ea55e3942061d35cd7d7e38b0c

Contents?: true

Size: 1.05 KB

Versions: 3

Compression:

Stored size: 1.05 KB

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__)

# use development version of win32/autogui
# remove these lines in production code
$LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__) unless
  $LOAD_PATH.include? File.expand_path('../../../../lib', __FILE__)

require 'rubygems'
require 'win32/autogui'
require 'quicknote'
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/quicknote/spec/spec_helper.rb
win32-autogui-0.2.1 examples/quicknote/spec/spec_helper.rb
win32-autogui-0.2.0 examples/quicknote/spec/spec_helper.rb