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