2012-11-06 2 views
0

테스트 루비 레일에 응용 프로그램을 테스트, 내가 테스트 뒤에 ":js=>true"옵션을 넣어 그러나 나는 즉시, 테스트를 (또한 로그인 한 사용자 ASA) 작업 한Authlogic 웹 애플리케이션은 셀레늄 자바 스크립트에서 더 이상 작동하지 않습니다는

it "does", :js => true do 
    activate_authlogic 
    visit '/' 
end 

백 내부 오류 나는이 작업을 얻을 수있는 방법

You must activate the Authlogic::Session::Base.controller with a controller object before creating objects 

와 웹 페이지를 얻을? 어떻게하면 오류를 더 자세히 확인할 수 있습니까? 지금은 나를 위해 작동함으로써

답변

0

, 나는 때문에

module Authlogic 
     module Session 
      module Activation 
      module ClassMethods 
       def controller 
       if !Thread.current[:authlogic_controller] 
        Thread.current[:authlogic_controller] = Authlogic::TestCase::MockController.new 
       end 
       Thread.current[:authlogic_controller] 
      end 
      end 
     end 
     end 
    end 

마녀 질문 SO: authlogic-with-capybara-cucumber-selenium-driver-not-working

에서 오는이 더러운 조각의 생각
관련 문제