Skip to content

Instantly share code, notes, and snippets.

@texel
Created July 2, 2009 22:28
Show Gist options
  • Select an option

  • Save texel/139761 to your computer and use it in GitHub Desktop.

Select an option

Save texel/139761 to your computer and use it in GitHub Desktop.
# RSpec
expect { do_something }.to change { something.else }.from(nil).to(an_instance_of(FooClass))
# Mocha
expect { do_something }.to change { something.else }.from(nil).to(instance_of?(FooClass))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment