Sha256: 816c2c3b0cff9a7ad77a6547441c578ce2dbbba00f0a88c506859bbd0941534c
Contents?: true
Size: 720 Bytes
Versions: 1
Compression:
Stored size: 720 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../rails_test_helper') require 'facebooker/rails/facebook_request_fix_2-3' if Rails.version >= '2.3' class Facebooker::Rails::FacebookRequestFix23Test < Test::Unit::TestCase def setup ENV['FACEBOOK_API_KEY'] = '1234567' ENV['FACEBOOK_SECRET_KEY'] = '7654321' if Rails.version < '2.3' @request = ActionController::TestRequest.new({"fb_sig_is_ajax"=>"1"}, {}, nil) else @request = ActionController::TestRequest.new @request.query_parameters[:fb_sig_is_ajax] = "1" end end def test_xhr_when_is_ajax assert @request.xhr? end def test_xml_http_request_when_is_ajax assert @request.xml_http_request? end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
taweili-facebooker-1.0.38 | test/facebooker/rails/facebook_request_fix_2-3_test.rb |