ticketmaster / poshspec

Infrastructure Testing DSL running in Pester
MIT License
183 stars 32 forks source link

Modify Service function to default to checking the status property if none specified #25

Closed devblackops closed 8 years ago

devblackops commented 8 years ago

This fixes issue #21 where the Service function prompts for a value for Should when a property of the service is not specified. This changes the behavior to default to checking the Status property.

With this change, either of these scenarios will produce the same test:

describe 'Services' {    
    service workstation status { should be running }
    service workstation { should be running }    
}