diff options
author | Claire McQuin <claire@getchef.com> | 2015-09-08 14:57:10 -0700 |
---|---|---|
committer | Claire McQuin <claire@getchef.com> | 2015-09-08 14:57:10 -0700 |
commit | 2517cae8ac1b52c9a5eca1347a63c072a97e2c4c (patch) | |
tree | 115856aabaa25be95e1b018098ca13e2d3de04fd /spec/unit/provider/dsc_resource_spec.rb | |
parent | 998e13adbda5e964d2f8d17ebd8f216f752244a6 (diff) | |
download | chef-2517cae8ac1b52c9a5eca1347a63c072a97e2c4c.tar.gz |
Rename refresh_mode_disabled? to dsc_refresh_mode_disabled?mcquin/dsc_resource_spec
Diffstat (limited to 'spec/unit/provider/dsc_resource_spec.rb')
-rw-r--r-- | spec/unit/provider/dsc_resource_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/provider/dsc_resource_spec.rb b/spec/unit/provider/dsc_resource_spec.rb index 807a844346..9946ab8410 100644 --- a/spec/unit/provider/dsc_resource_spec.rb +++ b/spec/unit/provider/dsc_resource_spec.rb @@ -51,7 +51,7 @@ describe Chef::Provider::DscResource do context 'when RefreshMode is not set to Disabled' do it 'raises an exception' do - expect(provider).to receive(:refresh_mode_disabled?).and_return(false) + expect(provider).to receive(:dsc_refresh_mode_disabled?).and_return(false) expect { provider.run_action(:run) }.to raise_error( Chef::Exceptions::ProviderNotFound, /Disabled/) end @@ -59,14 +59,14 @@ describe Chef::Provider::DscResource do context 'when RefreshMode is set to Disabled' do it 'does not update the resource if it is up to date' do - expect(provider).to receive(:refresh_mode_disabled?).and_return(true) + expect(provider).to receive(:dsc_refresh_mode_disabled?).and_return(true) expect(provider).to receive(:test_resource).and_return(true) provider.run_action(:run) expect(resource).not_to be_updated end it 'converges the resource if it is not up to date' do - expect(provider).to receive(:refresh_mode_disabled?).and_return(true) + expect(provider).to receive(:dsc_refresh_mode_disabled?).and_return(true) expect(provider).to receive(:test_resource).and_return(false) expect(provider).to receive(:set_resource) provider.run_action(:run) |