summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/unit/knife/client_create_spec.rb19
1 files changed, 1 insertions, 18 deletions
diff --git a/spec/unit/knife/client_create_spec.rb b/spec/unit/knife/client_create_spec.rb
index 17d18d084e..fe25dccfbf 100644
--- a/spec/unit/knife/client_create_spec.rb
+++ b/spec/unit/knife/client_create_spec.rb
@@ -28,7 +28,6 @@ describe Chef::Knife::ClientCreate do
{
"name" => "adam",
"validator" => false,
- "admin" => false,
}
end
@@ -102,14 +101,9 @@ describe Chef::Knife::ClientCreate do
expect(client.name).to eq("adam")
end
- it "by default it is not an admin" do
- knife.run
- expect(client.admin).to be_falsey
- end
-
it "by default it is not a validator" do
knife.run
- expect(client.admin).to be_falsey
+ expect(client.validator).to be_falsey
end
it "by default it should set create_key to true" do
@@ -136,17 +130,6 @@ describe Chef::Knife::ClientCreate do
end
end
- describe "with -a or --admin" do
- before do
- knife.config[:admin] = true
- end
-
- it "should create an admin client" do
- knife.run
- expect(client.admin).to be_truthy
- end
- end
-
describe "with -p or --public-key" do
before do
knife.config[:public_key] = "some_key"