If I use below it returns correct output. Can I use something similar
with Rspec so the test fails if its not true?
if time_on_site =~ /^00:[0-5][0-9]$/
puts "# Successful match"
else
puts "# Match attempt failed"
end
--
Posted via http://www.ruby-forum.com/.
_
Hi,
I use an regular expression to verify that my string in time_on_site is
correct. This works when the string match, but if it doesn't the test
get hanged. So I need to quit(ctrl+c) the script and also close ruby.exe
*32 in Task manager. Any ides how I can handle this?
time_on_site.should match
Hi,
I have array1 that contains several web address. Array2 contains the
expected endings of array1 values. How can I control that arrays2 values
is in array1?
I have tried array1.should include array2, but it requires that array1
and array2 is identical.
array1 = ["https:///page.html, http