Sha256: ce6383041dcb1f3358ceae4d5a2a66c42c8fc2678bbe1d5ac4f22acec410b7b4

Contents?: true

Size: 956 Bytes

Versions: 137

Compression:

Stored size: 956 Bytes

Contents

# Configure Rails Envinronment
ENV["RAILS_ENV"] = "test"

require File.expand_path("../dummy/config/environment.rb",  __FILE__)
require "rails/test_help"
require "rspec/rails"

ActionMailer::Base.delivery_method = :test
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.default_url_options[:host] = "test.com"

Rails.backtrace_cleaner.remove_silencers!

# Configure capybara for integration testing
require "capybara/rails"
Capybara.default_driver   = :rack_test
Capybara.default_selector = :css

# Run any available migration
ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__)

# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

RSpec.configure do |config|
  # Remove this line if you don't want RSpec's should and should_not
  # methods or matchers
  require 'rspec/expectations'
  config.include RSpec::Matchers

  # == Mock Framework
  config.mock_with :rspec
end

Version data entries

137 entries across 137 versions & 19 rubygems

Version Path
social_stream-2.2.2 ostatus/spec/spec_helper.rb
social_stream-ostatus-2.2.1 spec/spec_helper.rb
avatars_for_rails-1.1.4 spec/spec_helper.rb
social_stream-2.2.1 ostatus/spec/spec_helper.rb
denormalizer-0.0.5 spec/spec_helper.rb
denormalizer-0.0.4 spec/spec_helper.rb
social_stream-2.2.0 ostatus/spec/spec_helper.rb
social_stream-ostatus-2.2.0 spec/spec_helper.rb
social_stream-2.1.1 ostatus/spec/spec_helper.rb
avatars_for_rails-1.1.3 spec/spec_helper.rb
social_stream-1.1.12 ostatus/spec/spec_helper.rb
social_stream-2.1.0 ostatus/spec/spec_helper.rb
social_stream-ostatus-2.1.0 spec/spec_helper.rb
avatars_for_rails-1.1.2 spec/spec_helper.rb
social_stream-2.0.4 ostatus/spec/spec_helper.rb
avatars_for_rails-1.1.1 spec/spec_helper.rb
social_stream-2.0.3 ostatus/spec/spec_helper.rb
social_stream-1.1.11 ostatus/spec/spec_helper.rb
social_stream-1.1.10 ostatus/spec/spec_helper.rb
social_stream-1.1.9 ostatus/spec/spec_helper.rb