public
Description: cheat sheet repository for chit
Homepage:
Clone URL: git://github.com/robin/chitsheet.git
chitsheet / assert_match.yml
100644 12 lines (7 sloc) 0.206 kb
1
2
3
4
5
6
7
8
9
10
11
12
---
assert_match: |-
  # 'cheat assertions' for the rest
  
  assert_match(pattern, string, message="")
  
  Passes if string =~ pattern.
  
  Example:
  
    assert_match(/\d+/, 'five, 6, seven')