Skip to content

Commit 1cf7822

Browse files
committed
easy_install resource 100% coverage
1 parent c258892 commit 1cf7822

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

chef/spec/unit/resource/easy_install_package.rb renamed to chef/spec/unit/resource/easy_install_package_spec.rb

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
@resource = Chef::Resource::EasyInstallPackage.new("foo")
2525
end
2626

27+
it "should create a new Chef::Resource::EasyInstallPackage" do
28+
@resource.should be_a_kind_of(Chef::Resource)
29+
@resource.should be_a_kind_of(Chef::Resource::EasyInstallPackage)
30+
end
31+
2732
it "should return a Chef::Resource::EasyInstallPackage" do
2833
@resource.should be_a_kind_of(Chef::Resource::EasyInstallPackage)
2934
end
@@ -35,15 +40,9 @@
3540
it "should set the provider to Chef::Provider::Package::EasyInstall" do
3641
@resource.provider.should eql(Chef::Provider::Package::EasyInstall)
3742
end
38-
end
39-
40-
describe Chef::Resource::EasyInstall, "easy_install_binary" do
41-
before(:each) do
42-
@resource = Chef::Resource::EasyInstall.new("foo")
43-
end
4443

45-
it "should set the gem_binary variable to whatever is passed in" do
46-
@resource.gem_binary("/opt/local/bin/easy_install")
47-
@resource.gem_binary.should eql("/opt/local/bin/easy_install")
44+
it "should allow you to set the easy_install_binary attribute" do
45+
@resource.easy_install_binary "/opt/local/bin/easy_install"
46+
@resource.easy_install_binary.should eql("/opt/local/bin/easy_install")
4847
end
4948
end

0 commit comments

Comments
 (0)