1

카피 바라 설치 지침 here을 따르려고합니다. 하지만 통합 테스트를 실행하려고 할 때마다, 내가 얻을 :카피 바라 on Rails 3 설치 및 실행 (초기화되지 않은 상수 Object :: Rack (NameError))

/Users/rambo/.rvm/gems/ruby-1.9.2-p180/bundler/gems/capybara-6641fddcfc33/lib/capybara/rails.rb:4:in `<top (required)>': uninitialized constant Object::Rack (NameError) 
    from /Users/rambo/Code/ror/witsvale_app/test/integration_test_helper.rb:1:in `require' 
    from /Users/rambo/Code/ror/witsvale_app/test/integration_test_helper.rb:1:in `<top (required)>' 
    from test/integration/capy_test.rb:1:in `require' 
    from test/integration/capy_test.rb:1:in `<top (required)>' 
    from /Users/rambo/.rvm/gems/[email protected]/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `load' 

문제를 일으키는 라인이 require capybara/rails입니다.

모든 아이디어를 매우 높이 평가할 것입니다.

+3

"나는 람보 (rambo)를 철자해야합니다. 람보 (Rambo), 존 J. (John J.)이되어야합니다."와 같이 어리석은 말을하려고했습니다. – Tass

답변

1

나는 멍청이처럼 느껴.

어쨌든, 그것을 해결했습니다. 내가 'test'폴더에 'test_helper.rb'가 누락되었습니다. 그것을 포함시킨 후에, 그것은 작동합니다!

관련 문제