summaryrefslogtreecommitdiff
path: root/spec/unit/resource
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/resource')
-rw-r--r--spec/unit/resource/dsc_resource_spec.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/unit/resource/dsc_resource_spec.rb b/spec/unit/resource/dsc_resource_spec.rb
index 663ad4459e..6fa74a139f 100644
--- a/spec/unit/resource/dsc_resource_spec.rb
+++ b/spec/unit/resource/dsc_resource_spec.rb
@@ -15,9 +15,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
-
require 'spec_helper'
-
describe Chef::Resource::DscResource do
let(:dsc_test_resource_name) { 'DSCTest' }
let(:dsc_test_property_name) { :DSCTestProperty }
@@ -31,6 +29,7 @@ describe Chef::Resource::DscResource do
empty_events = Chef::EventDispatch::Dispatcher.new
Chef::RunContext.new(node, {}, empty_events)
}
+
let(:dsc_test_resource) {
Chef::Resource::DscResource.new(dsc_test_resource_name, dsc_test_run_context)
}
@@ -39,7 +38,7 @@ describe Chef::Resource::DscResource do
expect(dsc_test_resource.action).to eq([:run])
end
- it "has an allowed_actions attribute with only the `:run` and `:nothing` attributes" do
+ it "has an ed_actions attribute with only the `:run` and `:nothing` attributes" do
expect(dsc_test_resource.allowed_actions.to_set).to eq([:run,:nothing].to_set)
end
@@ -53,7 +52,7 @@ describe Chef::Resource::DscResource do
expect(dsc_test_resource.module_name).to eq(dsc_test_resource_name)
end
- it "allows the reboot_action attribute to be set" do
+ it "allows the reboot_action attribute to be set" do
dsc_test_resource.reboot_action(dsc_test_reboot_action)
expect(dsc_test_resource.reboot_action).to eq(dsc_test_reboot_action)
end
@@ -88,4 +87,4 @@ describe Chef::Resource::DscResource do
end
end
end
-end
+end \ No newline at end of file