test/rails_test_helper.rb in taweili-facebooker-1.0.45 vs test/rails_test_helper.rb in taweili-facebooker-1.0.47
- old
+ new
@@ -13,9 +13,17 @@
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"