search for: then_it

Displaying 1 result from an estimated 1 matches for "then_it".

2007 Apr 11
10
DRYer controller specs
...es afterward, depending on whether it''s a mock expectation or a state expectation. So I played around with creating the following module and then extending my context with it. module MockSpecHelpers def expect_that_it(msg) specify msg do yield action end end def then_it(msg) specify msg do action yield end end end in the context block, I would then "def action do get ''create'' end". And I would replace the following specify blocks specify "should create a new person on GET to create" do Person.shou...