Skip to content

Instantly share code, notes, and snippets.

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 jimweirich/142321 to your computer and use it in GitHub Desktop.
Save jimweirich/142321 to your computer and use it in GitHub Desktop.
%w(some_method some_other_method).each do |method|
it "should call #{method}" do
obj.should_receive(:some_method).once
test_code_here
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment