Sha256: 15a81192d5c437d870d5318341aa4cd405d3b0bf0dd5d701ab7476c9f7dc7b2f

Contents?: true

Size: 651 Bytes

Versions: 102

Compression:

Stored size: 651 Bytes

Contents

require 'facebooker/rails/cucumber/world'
require 'facebooker/mock/session'
require 'facebooker/mock/service'

Facebooker::MockService.fixture_path = File.join(RAILS_ROOT, 'features', 'support', 'facebook')

module Facebooker
  class << self
    # prevent Facebooker from adding canvas name as prefix to URLs
    def request_for_canvas(arg)
      yield
    end
  end
  
  module Rails
    module Controller
      # prevent Facebooker from rendering fb:redirect
      def redirect_to(*args)
        super
      end
      
      # Return the mock session
      def new_facebook_session
        Facebooker::MockSession.create
      end
    end
  end
end

Version data entries

102 entries across 102 versions & 23 rubygems

Version Path
corey-facebooker-1.0.28.1 lib/facebooker/rails/cucumber.rb
fs-facebooker-1.0.37 lib/facebooker/rails/cucumber.rb
mborromeo-facebooker-1.0.28 lib/facebooker/rails/cucumber.rb
mborromeo-facebooker-1.0.29 lib/facebooker/rails/cucumber.rb
mborromeo-facebooker-1.0.30 lib/facebooker/rails/cucumber.rb
mborromeo-facebooker-1.0.31 lib/facebooker/rails/cucumber.rb
micahwedemeyer-facebooker-1.0.50 lib/facebooker/rails/cucumber.rb
micahwedemeyer-facebooker-1.0.51 lib/facebooker/rails/cucumber.rb
mmangino-facebooker-1.0.19 lib/facebooker/rails/cucumber.rb
mmangino-facebooker-1.0.20 lib/facebooker/rails/cucumber.rb
mmangino-facebooker-1.0.21 lib/facebooker/rails/cucumber.rb
mmangino-facebooker-1.0.22 lib/facebooker/rails/cucumber.rb
mmangino-facebooker-1.0.23 lib/facebooker/rails/cucumber.rb
mmangino-facebooker-1.0.24 lib/facebooker/rails/cucumber.rb
mmangino-facebooker-1.0.25 lib/facebooker/rails/cucumber.rb
mmangino-facebooker-1.0.26 lib/facebooker/rails/cucumber.rb
mmangino-facebooker-1.0.27 lib/facebooker/rails/cucumber.rb
mmangino-facebooker-1.0.28 lib/facebooker/rails/cucumber.rb
mmangino-facebooker-1.0.29 lib/facebooker/rails/cucumber.rb
mmangino-facebooker-1.0.30 lib/facebooker/rails/cucumber.rb