diff options
author | tylercloke <tylercloke@gmail.com> | 2015-07-01 15:58:05 -0700 |
---|---|---|
committer | tylercloke <tylercloke@gmail.com> | 2015-07-06 14:36:02 -0700 |
commit | e35250325f6836b464841441d33336c988b8ccc6 (patch) | |
tree | 290fea59f69f72ce5d412a313d918cbbce1dd766 /spec/unit/knife/user_create_spec.rb | |
parent | 320afd88bb6751b67573af982a0cf5d51a035af7 (diff) | |
download | chef-e35250325f6836b464841441d33336c988b8ccc6.tar.gz |
Move Chef::OscUser back to Chef::User namespace and new user code to Chef::UserV1.
Also, have Chef::User (formally Chef::OscUser) use API V0 to make requests.
Diffstat (limited to 'spec/unit/knife/user_create_spec.rb')
-rw-r--r-- | spec/unit/knife/user_create_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/knife/user_create_spec.rb b/spec/unit/knife/user_create_spec.rb index 49d62cc2d7..fa5c8324b4 100644 --- a/spec/unit/knife/user_create_spec.rb +++ b/spec/unit/knife/user_create_spec.rb @@ -186,7 +186,7 @@ describe Chef::Knife::UserCreate do context "when a private_key is returned" do before do - allow(knife).to receive(:create_user_from_hash).and_return(Chef::User.from_hash(knife.user.to_hash.merge({"private_key" => "some_private_key"}))) + allow(knife).to receive(:create_user_from_hash).and_return(Chef::UserV1.from_hash(knife.user.to_hash.merge({"private_key" => "some_private_key"}))) end context "when --file is passed" do |