Sha256: 3e356100d015b9add4cd6da5d1673983e86369bddfc55bc0a57cb23295fdb4cd
Contents?: true
Size: 815 Bytes
Versions: 31
Compression:
Stored size: 815 Bytes
Contents
AutomateIt_Base = File.dirname(File.expand_path(__FILE__)) unless defined?(AutomateIt_Base) AutomateIt_Lib = File.join(AutomateIt_Base, "/../lib") unless defined?(AutomateIt_Lib) AutomateIt_Bin = File.join(AutomateIt_Base, "/../bin") unless defined?(AutomateIt_Bin) $LOAD_PATH.unshift(AutomateIt_Lib) # Remove environmental variables that will contaminate tests ENV.delete("AUTOMATEIT_PROJECT") require 'automateit' # Create a global instance, using WARN verbosity so that # INTERPRETER.mktempdircd calls don't generate output. unless defined?(INTERPRETER) INTERPRETER = AutomateIt.new(:verbosity => Logger::WARN) end # Inject matchers into interpreter, e.g., 'should be_true' INTERPRETER.class.send(:include, Spec::Matchers) def write_to(filename, text) File.open(filename, "w+"){|h| h.write(text)} end
Version data entries
31 entries across 31 versions & 2 rubygems