You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- class CardboardBox
- def initialize(transmogrifier)
- @transmogrifier = transmogrifier
- end
-
- def poke
- @transmogrifier.transmogrify
- end
- end
-
- Given(/^I have a cardboard box$/) do
- transmogrifier = double('transmogrifier')
- expect(transmogrifier).to receive(:transmogrify)
- @box = CardboardBox.new(transmogrifier)
- end
-
- When(/^I poke it all is good$/) do
- @box.poke
- end
|