Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 36 lines (26 sloc) 0.982 kb
ae7d28b @mjankowski use rspec for tests
mjankowski authored
1 # Configure Rails Envinronment
2 ENV["RAILS_ENV"] = "test"
3
4 require File.expand_path("../dummy/config/environment.rb", __FILE__)
5 require "rails/test_help"
6 require "rspec/rails"
7
8 ActionMailer::Base.delivery_method = :test
9 ActionMailer::Base.perform_deliveries = true
10 ActionMailer::Base.default_url_options[:host] = "test.com"
11
12 Rails.backtrace_cleaner.remove_silencers!
13
14 # Configure capybara for integration testing
15 require "capybara/rails"
16 Capybara.default_driver = :rack_test
17 Capybara.default_selector = :css
18
19 # Run any available migration
20 ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__)
21
22 # Load support files
23 Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
24
25 RSpec.configure do |config|
26 # Remove this line if you don't want RSpec's should and should_not
27 # methods or matchers
28 require 'rspec/expectations'
29 config.include RSpec::Matchers
30
31 # == Mock Framework
4ae8fd1 @mjankowski test coverage for body_class method
mjankowski authored
32 config.mock_with :mocha
ae7d28b @mjankowski use rspec for tests
mjankowski authored
33 end
34
35 require 'rexml/document'
Something went wrong with that request. Please try again.