Sha256: db324b4b94536d17b382a54a5cb4bc8f064264b8b33bd0923e9ea7b86fe655d2
Contents?: true
Size: 642 Bytes
Versions: 4
Compression:
Stored size: 642 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../rails_test_helper') 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
4 entries across 4 versions & 3 rubygems