Permalink
Browse files

Clarify that we are testing for equality, not substrings

  • Loading branch information...
1 parent df0b683 commit 1ce2a819758c2feaaacc2614fb97b1f6c8dd8545 @joliss joliss committed Sep 5, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.md
View
6 README.md
@@ -50,13 +50,13 @@ Assert that the first element of the selection has the given id, using `.attr('i
expect($('body')).to.have.id('foo');
### `html(html)`
-Assert that the first element of the selection has the given html, using [`.html()`](http://api.jquery.com/html/).
+Assert that the html of the first element of the selection is equal to the given html, using [`.html()`](http://api.jquery.com/html/).
$('.name').should.have.html('<em>John Doe</em>');
expect($('#title')).to.have.html('Chai Tea');
### `text(text)`
-Assert that the first element of the selection has the given text, using [`.text()`](http://api.jquery.com/text/).
+Assert that the text of the first element of the selection is equal to the given text, using [`.text()`](http://api.jquery.com/text/).
$('.name').should.have.text('John Doe');
expect($('#title')).to.have.text('Chai Tea');
@@ -120,7 +120,7 @@ not a jQuery object, or if `be` is not called as a function, the original implem
$('input').should.match('#foo');
expect($('#empty')).to.be(':empty');
-### `contain(selector)`
+### `contain(text)`
Assert that the selection contains the given text, using [`:contains()`](http://api.jquery.com/contains-selector/).
If the object asserted against is not a jQuery object, or if `contain` is not called as a function, the original
implementation will be called.

0 comments on commit 1ce2a81

Please sign in to comment.