summaryrefslogtreecommitdiff
path: root/spec/unit/provider/windows_task_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/provider/windows_task_spec.rb')
-rw-r--r--spec/unit/provider/windows_task_spec.rb30
1 files changed, 15 insertions, 15 deletions
diff --git a/spec/unit/provider/windows_task_spec.rb b/spec/unit/provider/windows_task_spec.rb
index 66bd6854b6..39f39b37fe 100644
--- a/spec/unit/provider/windows_task_spec.rb
+++ b/spec/unit/provider/windows_task_spec.rb
@@ -70,20 +70,20 @@ describe Chef::Provider::WindowsTask, :windows_only do
new_resource.frequency_modifier 15
new_resource.random_delay 60
result = {
- :start_year => 2017,
- :start_month => 12,
- :start_day => 2,
- :start_hour => 17,
- :start_minute => 30,
- :end_month => 0,
- :end_day => 0,
- :end_year => 0,
- :trigger_type => 1,
- :type => { :once => nil },
- :random_minutes_interval => 60,
- :minutes_interval => 15,
- :run_on_last_day_of_month => false,
- :run_on_last_week_of_month => false
+ start_year: 2017,
+ start_month: 12,
+ start_day: 2,
+ start_hour: 17,
+ start_minute: 30,
+ end_month: 0,
+ end_day: 0,
+ end_year: 0,
+ trigger_type: 1,
+ type: { once: nil },
+ random_minutes_interval: 60,
+ minutes_interval: 15,
+ run_on_last_day_of_month: false,
+ run_on_last_week_of_month: false
}
expect(provider.send(:trigger)).to eq(result)
@@ -145,7 +145,7 @@ describe Chef::Provider::WindowsTask, :windows_only do
new_resource.frequency_modifier 2
result = provider.send(:type)
expect(result).to include(:once)
- expect(result).to eq({ :once => nil })
+ expect(result).to eq({ once: nil })
end
it "returns type hash when frequency :daily" do