Created
December 3, 2012 00:57
-
-
Save jasonporritt/4191937 to your computer and use it in GitHub Desktop.
More complete motion-stump test snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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