Sha256: 5140ee628bdd95b21708e47eb74fac4f5fc360376dabc47f9732327b4039adce

Contents?: true

Size: 1.34 KB

Versions: 28

Compression:

Stored size: 1.34 KB

Contents

require File.expand_path(File.dirname(__FILE__) + '/test_helper')

tmp = $-w
$-w = nil
require 'action_controller'
require 'action_controller/test_process'
require 'active_record'
$-w = tmp
gem 'rails'
require 'initializer'
require File.dirname(__FILE__)+'/../init'
require 'facebooker/rails/controller'
require 'facebooker/rails/helpers/fb_connect'
require 'facebooker/rails/helpers'
require 'facebooker/rails/publisher'
require 'facebooker/rails/facebook_form_builder'

if Rails.version >= '2.3'
  Test::Unit::TestCase.send :include, ActionController::TestCase::Assertions
  Test::Unit::TestCase.send :include, ActionController::TestProcess
  Test::Unit::TestCase.send :include, Facebooker::Rails::TestHelpers

  ActionController::Base.session = { :key => "9hfwfl8slgh9", :secret => "db08fcba0378a9e066ce037bec4b72bc" }
end

ActionController::Routing::Routes.draw do |map|
  map.connect '', :controller=>"facebook",:conditions=>{:canvas=>true}
  map.connect '', :controller=>"plain_old_rails"
  map.resources :comments, :controller=>"plain_old_rails"
  map.connect 'require_auth/:action', :controller => "controller_which_requires_facebook_authentication"
  map.connect 'require_install/:action', :controller => "controller_which_requires_application_installation"
  silence_warnings do
    map.connect ':controller/:action/:id', :controller => "plain_old_rails"
  end
end

Version data entries

28 entries across 28 versions & 8 rubygems

Version Path
Hoodow-facebooker-1.0.55 test/rails_test_helper.rb
facebooker-1.0.55 test/rails_test_helper.rb
facebooker-1.0.54 test/rails_test_helper.rb
facebooker-1.0.53 test/rails_test_helper.rb
facebooker-1.0.52 test/rails_test_helper.rb
facebooker-1.0.51 test/rails_test_helper.rb
facebooker-1.0.50 test/rails_test_helper.rb
facebooker-1.0.48 test/rails_test_helper.rb