1
の「カピバラ/レール」を必要とする必要はありません、私は宝石をインストールした後、私のspec_helperファイル内カピバラ/レール要求することがあります。は、なぜ私はカピバラさん<a href="https://github.com/teamcapybara/capybara" rel="nofollow noreferrer">readme</a>のGithub上によるとspec_helper
require 'capybara/rails'
をしかし、私は残していてもspec_helperに声明を必要と、私はまだ、次のカピバラの構文を使用することができます。installコマンド:
scenario "successfully creates a new user account" do
visit "users#index"
fill_in "user_email", with: "[email protected]"
click_button "Create User"
expect(page).to have_content "User successfully created"
end
それはレールとは何かグラムRSpecのを持っていますか?なぜ構文が働くのか混乱しています。アプリはどのように知っていますか?