Sha256: 817496ecc32755efe204bf8c59feb3218f3ceed79ed25568d76d0ebdc15d9fc0

Contents?: true

Size: 971 Bytes

Versions: 1

Compression:

Stored size: 971 Bytes

Contents

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

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

# Testing Generators
require 'ammeter/init'
require 'factory_girl_rails'

# Should matchers
require 'shoulda/matchers'

Rails.backtrace_cleaner.remove_silencers!

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

# Run migrations if present
ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__)

RSpec.configure do |config|
  config.include RSpec::Matchers
  config.use_transactional_fixtures = true
  config.infer_base_class_for_anonymous_controllers = false
  config.order = "random"

  config.expect_with :rspec do |c|
    c.syntax = [:should, :expect]
  end

  # http://stackoverflow.com/a/12978795
  config.include Capybara::DSL, type: :request
end

def identity_class
  Socialite.identity_class
end

def user_class
  Socialite.user_class
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
socialite-0.1.0.pre spec/spec_helper.rb