summaryrefslogtreecommitdiff
path: root/spec/unit/provider
diff options
context:
space:
mode:
authorSteven Murawski <steven.murawski@gmail.com>2015-11-17 15:12:41 -0600
committerSteven Murawski <steven.murawski@gmail.com>2015-11-17 15:12:41 -0600
commit96e588daaf298593a6e6f0cef63e1802e6d72a40 (patch)
tree54cc088a2b2438a306a7148668294956c71d1da6 /spec/unit/provider
parent6cb744052c0818902f97630c52d55045fcee92df (diff)
downloadchef-96e588daaf298593a6e6f0cef63e1802e6d72a40.tar.gz
Diffstat (limited to 'spec/unit/provider')
-rw-r--r--spec/unit/provider/dsc_resource_spec.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/spec/unit/provider/dsc_resource_spec.rb b/spec/unit/provider/dsc_resource_spec.rb
index dc0da1d1c1..b95b1d7bcf 100644
--- a/spec/unit/provider/dsc_resource_spec.rb
+++ b/spec/unit/provider/dsc_resource_spec.rb
@@ -16,7 +16,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
-
require 'chef'
require 'spec_helper'
@@ -34,7 +33,6 @@ describe Chef::Provider::DscResource do
node.automatic[:languages][:powershell][:version] = '4.0'
node
}
-
it 'raises a ProviderNotFound exception' do
expect(provider).not_to receive(:meta_configuration)
expect{provider.run_action(:run)}.to raise_error(
@@ -72,7 +70,7 @@ describe Chef::Provider::DscResource do
provider.run_action(:run)
expect(resource).to be_updated
end
-
+
it 'flags the resource as reboot required when required' do
expect(provider).to receive(:dsc_refresh_mode_disabled?).and_return(true)
expect(provider).to receive(:test_resource).and_return(false)
@@ -82,7 +80,7 @@ describe Chef::Provider::DscResource do
expect(provider).to receive(:create_reboot_resource)
provider.run_action(:run)
end
-
+
it 'does not flag the resource as reboot required when not required' do
expect(provider).to receive(:dsc_refresh_mode_disabled?).and_return(true)
expect(provider).to receive(:test_resource).and_return(false)
@@ -94,4 +92,4 @@ describe Chef::Provider::DscResource do
end
end
end
-end
+end \ No newline at end of file