Skip to content

Instantly share code, notes, and snippets.

@jbrains

jbrains/gist:185032

Created Sep 11, 2009
Embed
What would you like to do?
DetachmentSystemTest {
testRespondsToRapidAcceleration() {
detachment_system = DetachmentSystem.new(parachute = mock(Parachute))
parachute.expects().detach()
this_block {
detachment_system.handle_acceleration_report(-50.ms2)
}.should execute_without_incident
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment