我正在将测试单元中的测试重新写入Rspec/capybara,我只是想弄清楚正确的语法。我想打root_path并检查是否有一个指向'/'的链接(在标题中)。 老试验的相关部分是: test 'layout links' do
get root_path
assert_select 'a[href=?]', root_path, count: 1
end
我可以使用测试使
我用一个简单的测试 require "rails_helper"
RSpec.feature "Home page", :type => :feature do
scenario "When a user visit it" do
visit "/"
expect(page).to have_css('article', count: 10)
end
end
在我
我正在为RSpec测试编写视图并在尝试填写文本字段时出现以下错误。 1) coordinators/new.html.erb populate page name text entry field filled checks for presence of filled in text field
Failure/Error: fill_in "coordinator_name", with: