5
私はrspec 2.10.0 + capybara 1.1.2で私のレールアプリをテストしようとしています。ここに私のテストファイルは、しかし、私はこの宝石がインストールされていない、私はこの問題についてグーグルが、webratが問題になることができる唯一の情報を見つけるrails 3.2 capybara Capybara :: ElementNotFound:xpath "/ html"を見つけることができません
require 'spec_helper'
describe AdminPanelController do
describe "index" do
it "should have return code 200" do
visit '/admin'
page.should have_content "hello"
#response.status.should be(200)
end
end
end
そして、ここでは
Failure/Error: page.should have_content "hello"
Capybara::ElementNotFound:
Unable to find xpath "/html"
の試験結果です。ご意見ありがとうございます。
この回答のためのハイとローの検索。シャープなもの! –
Capybara 2.0では、これは 'type::request'ではなく' type::feature'です。 –