spec/spec_helper.rb in gorillib-0.0.7 vs spec/spec_helper.rb in gorillib-0.0.8

- old
+ new

@@ -1,12 +1,17 @@ -$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) -$LOAD_PATH.unshift(File.dirname(__FILE__)) +require 'rubygems' unless defined?(Gem) +require 'spork' require 'rspec' -require 'gorillib' -# Requires supporting files with custom matchers and macros, etc, -# in ./support/ and its subdirectories. -Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} +Spork.prefork do + # You'll need to restart for changes to configuration or code from libraries loaded here -RSpec.configure do |config| - + $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) + Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} + + RSpec.configure do |config| + end +end + +Spork.each_run do + # This code will be run each time you run your specs. end