summaryrefslogtreecommitdiff
path: root/spec/unit/knife/user_create_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/knife/user_create_spec.rb')
-rw-r--r--spec/unit/knife/user_create_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/unit/knife/user_create_spec.rb b/spec/unit/knife/user_create_spec.rb
index 0e36e148ac..00a570e4c8 100644
--- a/spec/unit/knife/user_create_spec.rb
+++ b/spec/unit/knife/user_create_spec.rb
@@ -30,14 +30,14 @@ describe Chef::Knife::UserCreate do
@user_with_private_key = Chef::User.new
@user_with_private_key.name "a_user"
@user_with_private_key.private_key 'private_key'
- @user.stub!(:create).and_return(@user_with_private_key)
- Chef::User.stub!(:new).and_return(@user)
- Chef::User.stub!(:from_hash).and_return(@user)
- @knife.stub!(:edit_data).and_return(@user.to_hash)
+ @user.stub(:create).and_return(@user_with_private_key)
+ Chef::User.stub(:new).and_return(@user)
+ Chef::User.stub(:from_hash).and_return(@user)
+ @knife.stub(:edit_data).and_return(@user.to_hash)
@stdout = StringIO.new
@stderr = StringIO.new
- @knife.ui.stub!(:stdout).and_return(@stdout)
- @knife.ui.stub!(:stderr).and_return(@stderr)
+ @knife.ui.stub(:stdout).and_return(@stdout)
+ @knife.ui.stub(:stderr).and_return(@stderr)
end
it "creates a new user" do