spec/spec_helper.rb in autotest-growl-0.1.7 vs spec/spec_helper.rb in autotest-growl-0.2.0
- old
+ new
@@ -1,16 +1,14 @@
-begin
- require 'spec'
-rescue LoadError
- require 'rubygems' unless ENV['NO_RUBYGEMS']
- gem 'rspec'
- require 'spec'
-end
-
-$:.unshift(File.dirname(__FILE__) + '/../lib')
+$LOAD_PATH.unshift(File.dirname(__FILE__))
+$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'autotest/growl'
+require 'spec'
+require 'spec/autorun'
+Spec::Runner.configure do |config|
+end
+
module Autotest::Growl
def self.growl(title, message, icon, priority=0, stick="")
icon
end
-end
+end
\ No newline at end of file