Skip to content

Instantly share code, notes, and snippets.

View dillonkearns's full-sized avatar
🌳

Dillon Kearns dillonkearns

🌳
View GitHub Profile
Given /^the user enters the (right|wrong) password (\d+) times?$/ do |right_or_wrong, num_tries|
num_tries.to_i.times do
puts "Entering %s password" % right_or_wrong
end
end
Then /^a captcha should( NOT|) be displayed$/ do |is_displayed|
#pending("How do we check if captcha is displayed?")
true.should == false
if is_displayed =~ /NOT/