Module Facebooker::Rails::TestHelpers
In: lib/facebooker/rails/test_helpers.rb

Methods

Public Instance methods

[Source]

# File lib/facebooker/rails/test_helpers.rb, line 4
      def assert_facebook_redirect_to(url)
        assert_response :success
        assert_not_nil facebook_redirect_url
        assert_equal url, facebook_redirect_url
      end

[Source]

# File lib/facebooker/rails/test_helpers.rb, line 26
      def facebook_delete(path,params={}, session=nil, flash=nil)
        facebook_verb(:delete, path, params, session, flash)
      end

[Source]

# File lib/facebooker/rails/test_helpers.rb, line 14
      def facebook_get(path, params={}, session=nil, flash=nil)
        facebook_verb(:get, path, params, session, flash)
      end

[Source]

# File lib/facebooker/rails/test_helpers.rb, line 34
      def facebook_params(params = {})
        params = default_facebook_parameters.with_indifferent_access.merge(params || {})
        sig = generate_signature params
        params.merge(:fb_sig => sig)
      end

[Source]

# File lib/facebooker/rails/test_helpers.rb, line 18
      def facebook_post(path,params={}, session=nil, flash=nil)
        facebook_verb(:post, path, params, session, flash)
      end

[Source]

# File lib/facebooker/rails/test_helpers.rb, line 22
      def facebook_put(path,params={}, session=nil, flash=nil)
        facebook_verb(:put, path, params, session, flash)
      end

[Source]

# File lib/facebooker/rails/test_helpers.rb, line 30
      def facebook_verb(verb, path, params={}, session=nil, flash=nil)
        send verb, path, facebook_params(params).reverse_merge(:canvas => true), session, flash
      end

[Source]

# File lib/facebooker/rails/test_helpers.rb, line 10
      def follow_facebook_redirect!
        facebook_post facebook_redirect_url
      end

[Validate]