Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 2c882a73b0
Fetching contributors…

Cannot retrieve contributors at this time

file 38 lines (31 sloc) 0.981 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
require "rubygems"

begin
  require 'bundler'
  begin
    Bundler.setup(:default, :development)
  rescue Bundler::BundlerError => e
    $stderr.puts e.message
    $stderr.puts "Run `bundle install` to install missing gems"
    exit e.status_code
  end
rescue LoadError
  # Not using bundler
end

require "active_support"
require "action_pack"
require "action_view"
require "action_controller"
require 'action_controller/test_process'
require 'action_controller/integration'
require 'active_support/test_case'
require 'spec/test/unit'


require "facebooker2"
gem "rspec-rails"

#required because view tests need a controller
class ApplicationController < ActionController::Base
end

#load just the files needed for helper tests so that we don't need a full rails stack
require "spec/rails/example/functional_example_group"
require "spec/rails/example/helper_example_group"
require 'spec/rails/interop/testcase'

Spec::Example::ExampleGroupFactory.default(ActiveSupport::TestCase)
Something went wrong with that request. Please try again.