Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@myronmarston
Created April 9, 2015 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save myronmarston/d6be05626888ee9cb54c to your computer and use it in GitHub Desktop.
Save myronmarston/d6be05626888ee9cb54c to your computer and use it in GitHub Desktop.
Example of using `a_string_including`
expect {
expect(the_dbl).to have_received(:expected_method).with(:one).once
}.to raise_error(Expectations::ExpectationNotMetError,
a_string_including("expected: 1 time",
"received: 2 times"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment