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.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/spec/unit/knife/user_create_spec.rb b/spec/unit/knife/user_create_spec.rb
index 7983df8b41..ce4286a186 100644
--- a/spec/unit/knife/user_create_spec.rb
+++ b/spec/unit/knife/user_create_spec.rb
@@ -47,14 +47,13 @@ describe Chef::Knife::UserCreate do
it "displays the osc warning" do
expect(knife.ui).to receive(:warn).with(knife.osc_11_warning)
- expect{ knife.run }.to raise_error(SystemExit)
+ expect { knife.run }.to raise_error(SystemExit)
end
it "calls knife osc_user create" do
expect(knife).to receive(:run_osc_11_user_create)
- expect{ knife.run }.to raise_error(SystemExit)
+ expect { knife.run }.to raise_error(SystemExit)
end
-
end
context "when USERNAME isn't specified" do
@@ -186,7 +185,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::UserV1.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
@@ -209,6 +208,5 @@ describe Chef::Knife::UserCreate do
end
end
end
-
end # when all mandatory fields are validly specified
end