diff options
Diffstat (limited to 'spec/unit/provider/launchd_spec.rb')
-rw-r--r-- | spec/unit/provider/launchd_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/unit/provider/launchd_spec.rb b/spec/unit/provider/launchd_spec.rb index fa1323bfff..3e45433c62 100644 --- a/spec/unit/provider/launchd_spec.rb +++ b/spec/unit/provider/launchd_spec.rb @@ -170,17 +170,17 @@ XML it "should not allow invalid ShowCalendarInterval keys" do new_resource.program "/Library/scripts/call_mom.sh" new_resource.time_out 300 - expect { + expect do new_resource.start_calendar_interval "Hourly" => 1 - }.to raise_error(/Invalid key/) + end.to raise_error(/Hourly are invalid/) end it "should not allow non-integer values" do new_resource.program "/Library/scripts/call_mom.sh" new_resource.time_out 300 - expect { - new_resource.start_calendar_interval "Hour" => "1-2" - }.to raise_error(/Invalid value/) + expect do + new_resource.start_calendar_interval "Weekday" => "1-2" + end.to raise_error(/Invalid value.*\(1-2\)/) end end |