search for: expect_that_it

Displaying 2 results from an estimated 2 matches for "expect_that_it".

2007 Apr 11
10
DRYer controller specs
...is called in each specify block, sometimes before the actual specification, sometimes 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 speci...
2007 Apr 16
4
before before and after after
Hi all, There are currently a number of ways to extend RSpec that are documented inconsistently and work in sometimes conflicting and/or confusing ways. I''d like to resolve that. The recent addition of Spec::Runner.configure is part of that resolution. The thing I want to tackle now is the stuff that happens before and after each example. Currently (in trunk), things are executed in the