Just struggled with checking a checkbox in Cucumber using Capybara.
Given /^I click the checkbox$/ do
check(find("input[type='checkbox']")[:id])
end
Just struggled with checking a checkbox in Cucumber using Capybara.
Given /^I click the checkbox$/ do
check(find("input[type='checkbox']")[:id])
end