public
anonymous / gist:1260887
Created

spec helper

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
require 'rubygems'
require 'spork'
 
Spork.prefork do
require 'simplecov'
SimpleCov.start
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
require File.join(File.dirname(__FILE__), '../lib/existing_factory/existing_factory.rb')
require "paperclip/matchers"
 
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
 
RSpec.configure do |config|
config.mock_with :rspec
config.use_transactional_fixtures = true
end
 
end
 
Spork.each_run do
# This code will be run each time you run your specs.
SimpleCov.start
 
RSpec.configure do |config|
config.include Paperclip::Shoulda::Matchers
end
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.