File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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
4948end
You can’t perform that action at this time.
0 commit comments