Skip to content

anonymous /gist:1260887
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
spec helper
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.