[Rspec-devel] context could yield an object, and be nested

itsme213 itsme213 at hotmail.com
Sun May 28 23:06:52 EDT 2006


> I would accept duplication for enhanced clarity.  

Fair enough. Would you say this one is not clear?

In an empty home
  - the security system should be enabled
  When a door is opened
    - the system should beep
    - the display should highlight the door
    When the password is entered on time
      - the beeping should stop
      - the system should be disabled
      - the display should highlight the door
    When the password is not entered on time
      - the alarm should go off
      - the monitoring company should be notified

How would you suggest this one be written in rspec?

Thanks.


More information about the Rspec-devel mailing list