Sha256: 6b1313fc572bdf77939a556eba107e7ef5f4ae635abc8716b04a9c6d0c1f67b5
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 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 helpers # # @return full path to files in the aruba tmp folder def fullpath(filename) path = File.expand_path(File.join(current_dir, filename)) if path.match(/^\/cygdrive/) # match /cygdrive/c/path/to and return c:\\path\\to path = `cygpath -w #{path}`.chomp elsif path.match(/.\:/) # match c:/path/to and return c:\\path\\to path = path.gsub(/\//, '\\') end path end # @return the contents of "filename" in the aruba tmp folder def get_file_contents(filename) in_current_dir do IO.read(filename) end end Spec::Runner.configure do |config| config.include Aruba::Api end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
win32-autogui-0.4.0 | examples/quicknote/spec/spec_helper.rb |