summaryrefslogtreecommitdiff
path: root/spec/unit/resource/python_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/resource/python_spec.rb')
-rw-r--r--spec/unit/resource/python_spec.rb19
1 files changed, 8 insertions, 11 deletions
diff --git a/spec/unit/resource/python_spec.rb b/spec/unit/resource/python_spec.rb
index aba84c4000..72b1105ea9 100644
--- a/spec/unit/resource/python_spec.rb
+++ b/spec/unit/resource/python_spec.rb
@@ -20,21 +20,18 @@ require "spec_helper"
describe Chef::Resource::Python do
- before(:each) do
- @resource = Chef::Resource::Python.new("fakey_fakerton")
- end
+ let(:resource) { Chef::Resource::Python.new("fakey_fakerton") }
- it "should create a new Chef::Resource::Python" do
- expect(@resource).to be_a_kind_of(Chef::Resource)
- expect(@resource).to be_a_kind_of(Chef::Resource::Python)
+ it "creates a new Chef::Resource::Python" do
+ expect(resource).to be_a_kind_of(Chef::Resource)
+ expect(resource).to be_a_kind_of(Chef::Resource::Python)
end
- it "should have a resource name of :python" do
- expect(@resource.resource_name).to eql(:python)
+ it "has a resource name of :python" do
+ expect(resource.resource_name).to eql(:python)
end
- it "should have an interpreter of python" do
- expect(@resource.interpreter).to eql("python")
+ it "has an interpreter of python" do
+ expect(resource.interpreter).to eql("python")
end
-
end