2009-09-05 30 views
0

我們剛剛在新的Rails應用上安裝了Facebooker和Authlogic,但Canvas JavaScript限制讓我們選擇iframe來提供我們的應用程序。 有沒有人成功使用Cucumber和facebooker與iframe應用程序?Facebooker和黃瓜IFRAME:Session.current未設置

我試過

http://opensoul.org/2009/3/6/testing-facebook-with-cucumber

指示,但他們似乎並不管用。

具體來說,現在Session.current沒有被正確設置。我收到以下錯誤:

Given I am logged in as a Facebook user # features/step_definitions/webrat_steps.rb:6 
    You have a nil object when you didn't expect it!          
    The error occurred while evaluating nil.default_request_params (NoMethodError)                        
    features/manage_tournaments.feature:7:in `Given I am logged in as a Facebook user' 

任何人有什麼想法?

回答

0

我認爲黃瓜不是問題,但WebRat。 WebRat是一個瀏覽器模擬器,我不認爲它有任何iFrame支持。我建議你嘗試firewatir或任何其他'跑步者'的黃瓜,使用iFrame支持的實際瀏覽器。

+0

當然是。謝謝,併爲遲到的迴應感到抱歉。 – btelles 2009-10-26 16:47:01