Skip to content

Instantly share code, notes, and snippets.

@learnist
Created August 27, 2008 18:30
Show Gist options
  • Save learnist/7555 to your computer and use it in GitHub Desktop.
Save learnist/7555 to your computer and use it in GitHub Desktop.
dir = File.dirname(__FILE__)
require File.expand_path("#{dir}/../../spec/spec_suite")
require File.expand_path("#{dir}/../../spec/spec_helpers/firefox_helper")
$LOAD_PATH.unshift("#{dir}/../vendor/plugins/screw-unit-server/lib")
require "screw_unit"
class ScrewUnitSpecSuite < SpecSuite
def run
header
params = {}
if `hostname`.chomp == 'shrader-linux'
params[:selenium_host] = "shrader"
params[:spec_url] = "http://shrader-linux:8080/specs"
end
FirefoxHelper.kill_osx_firefox3_profile_setup_instance
exit ScrewUnit::Client.run(params)
end
end
if $0 == __FILE__ || $0 =~ /rake_test_loader/
ScrewUnitSpecSuite.new.run
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment