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_dom_not_equal.yml
100644 15 lines (8 sloc) 0.404 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
assert_dom_not_equal: |
  # 'cheat assertions' for the rest
  
  assert_dom_not_equal(expected, actual, message = "")
  
  The negated form of assert_dom_equivalent.
  
  Examples
  
    # assert that the referenced method does not generate the specified HTML string
    assert_dom_not_equal '<a href="http://www.example.com">Apples</a>', link_to("Oranges", "http://www.example.com")