Skip to content

Commit 70162f9

Browse files
committed
cleanup tests
1 parent c278487 commit 70162f9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎chef/spec/unit/provider/directory_spec.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
end
3434

3535
it "should load the current resource based on the new resource" do
36-
File.should_receive(:exist?).once.and_return(true)
36+
File.stub!(:exist?).and_return(true)
3737
File.should_receive(:directory?).once.and_return(true)
3838
cstats = mock("stats", :null_object => true)
3939
cstats.stub!(:uid).and_return(500)

‎features/chef-client/cookbook_sync.feature‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Feature: Synchronize cookbooks from the server
2828
Given we have an empty file named 'cookbooks/synchronize_deps/recipes/woot.rb' in the client cache
2929
When I run the chef-client with '-l info'
3030
Then the run should exit '0'
31-
And 'stdout' should have 'INFO: Removing cookbooks/synchronize_deps/recipes/woot.rb from the cache; its cookbook is no longer needed on this client.'
31+
And 'stdout' should have 'INFO: Removing cookbooks/synchronize_deps/recipes/woot.rb from the cache'
3232

3333
Scenario: Remove cookbooks that are no longer needed
3434
Given a validated node

0 commit comments

Comments
 (0)