Skip to content

Instantly share code, notes, and snippets.

@jasonporritt
Created December 3, 2012 00:57
Show Gist options
  • Save jasonporritt/4191937 to your computer and use it in GitHub Desktop.
Save jasonporritt/4191937 to your computer and use it in GitHub Desktop.
More complete motion-stump test snippet
before do
@target = ObjectUnderTest.new
end
it 'posts a notification named "Jump" with the height' do
@target.notifCenter = mock('postNotificationName:object:userInfo:') do
| name, object, userInfo |
name.should == 'Jump'
object.should == @target
userInfo.should == { 'height' => '10m' }
end
@target.methodUnderTest('10m')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment