Sha256: 1c1a3e365dd3b6e4346d1ed3348cc21a3d6847b36f9e9069abab725a499909c9
Contents?: true
Size: 1.26 KB
Versions: 2
Compression:
Stored size: 1.26 KB
Contents
require 'coveralls' Coveralls.wear! ENV['RAILS_ENV'] ||= 'test' require File.expand_path("../dummy/config/environment.rb", __FILE__) require 'rspec/rails' require 'rspec/autorun' require 'factory_girl' require 'capybara/rspec' require 'database_cleaner' # require 'capybara-webkit' require 'shoulda-matchers' # require 'support/helpers' # require 'timecop' Rails.backtrace_cleaner.remove_silencers! # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } RSpec.configure do |config| config.mock_with :rspec config.use_transactional_fixtures = false config.infer_base_class_for_anonymous_controllers = false config.order = "random" config.color_enabled = true config.add_formatter(:progress) config.add_formatter(:html, 'rspec.html') # config.include Rails.application.routes.url_helpers # FactoryGirl config.include FactoryGirl::Syntax::Methods Capybara.javascript_driver = :webkit # disable empty translation creation Weeler.create_missing_translations = true config.before(:each) do DatabaseCleaner.strategy = :truncation DatabaseCleaner.start end config.after do # Timecop.return DatabaseCleaner.clean end end Dir["#{File.dirname(__FILE__)}/factories/*.rb"].each { |f| require f }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
weeler-0.0.3 | spec/spec_helper.rb |
weeler-0.0.2 | spec/spec_helper.rb |