Skip to content

Commit

Permalink
tweak spec_helper
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Oct 5, 2009
1 parent 70041db commit 0d303ac
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions generators/rspec/templates/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
# This file is copied to ~/spec when you run 'ruby script/generate rspec'
# from the project root directory.
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path(File.join(File.dirname(__FILE__),"..","config","environment"))
require File.expand_path(File.join(File.dirname(__FILE__),'..','config','environment'))
require 'spec/autorun'
require 'spec/rails'

# Uncomment the next line to use webrat's matchers
#require 'webrat/integrations/rspec-rails'

# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
Dir[File.expand_path(File.join(File.dirname(__FILE__),'support','**','*.rb'))].each {|f| require f}

Spec::Runner.configure do |config|
# If you're not using ActiveRecord you should remove these
Expand Down

0 comments on commit 0d303ac

Please sign in to comment.