public
Description: cheat sheet repository for chit
Homepage:
Clone URL: git://github.com/robin/chitsheet.git
robin (author)
Wed Jul 09 03:11:05 -0700 2008
commit  4d546432dd5b473dbbb5883f19cacc71b4599483
tree    d2371207000e34eb8ae02337f9e5c2f03ffdd22d
parent  8b2c5772e458466c24b4c2360fcf24e8b3b72468
chitsheet / assert_equal.yml
100644 14 lines (8 sloc) 0.387 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
assert_equal: |-
  # 'cheat assertions' for the rest
  
  assert_equal(expected, actual, message=nil)
  
  Passes if expected == +actual.
  
  Note that the ordering of arguments is important, since a helpful error message is generated when this one fails that tells you the values of expected and actual.
  
  Example:
  
    assert_equal 'MY STRING', 'my string'.upcase