Test that the form has 4 inputs is not working, I am copy pasting the line from the documentation:
assert_select "form input", 4
any ideas?
require "application_system_test_case"
class QuestionsTest < ApplicationSystemTestCase
test "visiting /ask renders the form" do
visit ask_url
assert_selector "p", text: "Ask your coach anything"
assert_select "form input", 4
end
end
The complete error message is:
Error:
QuestionsTest#test_visiting_/ask_renders_the_form:
ArgumentError: Unused parameters passed to Capybara::Queries::SelectorQuery : [4]
test/system/questions_test.rb:9:in `block in <class:QuestionsTest>'
Any help would be appreciate.
Don't know why my question is wrong according to stackoverflow, after having read their guidelines.