[rspec-users] regular expression hang ruby.exe

Mattias A. lists at ruby-forum.com
Wed May 8 07:42:42 UTC 2013

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"
    puts "# Match attempt failed"

Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list