私はakephalosでカピバラのテストのためのhello worldを使ってサンプルsinatraプロジェクトを与えられました。私はコードを見てコンセプトを理解しますが、どのように実行するのですか?もし私がラップトップconfig.ruを走らせてから:9292に行けば、私はちょうどこんにちはの世界を見ることができます。グレート、それは私に何を言っているのですか?どのようにテストを実行するのですか?このプロジェクトは素人の骨ですが、以下はexample_spec.rbというファイルです。例えば、「こんにちは」を探して失敗するのを見て、それが失敗するのはどうすればわかりますか?これが十分な情報であることを願っています。ありがとう!私はテストを私に供給した男に頼む前に、私はここでチェックすると思った、ありがとう!capybara sinatraを実行する方法
# describe and context blocks are optional but help organize things
describe 'the index page' do
include x
# :js => true is used to run the test in Firefox. Otherwise it runs headless
# and without JS support
it 'can view the index page', :js => true do
visit '/'
# check to see if the page has the following text (ignoring tags)
page.should have_content('Hello, world!')
# visit https://github.com/jnicklas/capybara to see a complete list of
# assertions
end