diff options
-rwxr-xr-x | spec/unit/provider/ssh_authorized_key/parsed.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/provider/ssh_authorized_key/parsed.rb b/spec/unit/provider/ssh_authorized_key/parsed.rb index 18f3be126..0f32a6f12 100755 --- a/spec/unit/provider/ssh_authorized_key/parsed.rb +++ b/spec/unit/provider/ssh_authorized_key/parsed.rb @@ -120,7 +120,7 @@ describe provider_class do end it "should chmod the key file to 0600" do - File.chmod(0600, File.expand_path("~nobody/.ssh/authorized_keys")) + File.expects(:chmod).with(0600, File.expand_path("~nobody/.ssh/authorized_keys")) @provider.flush end end @@ -184,7 +184,7 @@ describe provider_class do end it "should chmod the key file to 0600" do - File.chmod(0600, File.expand_path("~nobody/.ssh/authorized_keys")) + File.expects(:chmod).with(0600, File.expand_path("~nobody/.ssh/authorized_keys")) @provider.flush end end |