Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add start_with and end_with matchers to README [ci skip]

  • Loading branch information...
commit 35d98aadc8fe3056761ab47ec9f6948ba0e0e02b 1 parent 2e0cdbc
@dchelimsky dchelimsky authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 README.md
View
8 README.md
@@ -129,6 +129,8 @@ actual.should have_xxx(:arg) # passes if actual.has_xxx?(:arg)
```ruby
actual.should include(expected)
+actual.should start_with(expected)
+actual.should end_with(expected)
```
#### Examples
@@ -136,8 +138,14 @@ actual.should include(expected)
```ruby
[1,2,3].should include(1)
[1,2,3].should include(1, 2)
+[1,2,3].should start_with(1)
+[1,2,3].should start_with(1,2)
+[1,2,3].should end_with(3)
+[1,2,3].should end_with(2,3)
{:a => 'b'}.should include(:a => 'b')
"this string".should include("is str")
+"this string".should start_with("this")
+"this string".should end_with("ring")
```
## Also see
Please sign in to comment.
Something went wrong with that request. Please try again.