spec/spec_helper.rb in gorillib-0.1.11 vs spec/spec_helper.rb in gorillib-0.4.0pre
- old
+ new
@@ -1,22 +1,19 @@
require 'rubygems' unless defined?(Gem)
-require 'spork'
require 'rspec'
GORILLIB_ROOT_DIR = File.expand_path(File.join(File.dirname(__FILE__),'..'))
def GORILLIB_ROOT_DIR *paths
File.join(::GORILLIB_ROOT_DIR, *paths)
end
-Spork.prefork do # Must restart for changes to config / code from libraries loaded here
- $LOAD_PATH.unshift(GORILLIB_ROOT_DIR('lib'))
- $LOAD_PATH.unshift(GORILLIB_ROOT_DIR('spec/support'))
- Dir[GORILLIB_ROOT_DIR('spec/support/matchers/*.rb')].each {|f| require f}
+ENV['QUIET_RSPEC'] = 'please'
- RSpec.configure do |config|
- end
-end
+$LOAD_PATH.unshift(GORILLIB_ROOT_DIR('lib'))
+$LOAD_PATH.unshift(GORILLIB_ROOT_DIR('spec/support'))
+require 'gorillib_test_helpers'
+Dir[GORILLIB_ROOT_DIR('spec/support/matchers/*.rb')].each {|f| require f}
+Dir[GORILLIB_ROOT_DIR('spec/support/shared_examples/*.rb')].each {|f| require f}
-Spork.each_run do # This code will be run each time you run your specs.
- RSpec.configure do |config|
- end
+RSpec.configure do |config|
+ include Gorillib::TestHelpers
end