spec/spec_helper.rb in apipie-rails-0.0.24 vs spec/spec_helper.rb in apipie-rails-0.1.0

- old
+ new

@@ -1,18 +1,19 @@ require 'rubygems' require 'bundler/setup' ENV["RAILS_ENV"] ||= 'test' +APIPIE_ROOT = File.expand_path('../..', __FILE__) require File.expand_path("../dummy/config/environment", __FILE__) require 'rspec/rails' require 'rspec/autorun' require 'apipie-rails' # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. -Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f} +Dir[File.expand_path("../support/**/*.rb", __FILE__)].each {|f| require f} RSpec.configure do |config| config.mock_with :rspec