summaryrefslogtreecommitdiff
path: root/spec/unit/knife/user_edit_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/knife/user_edit_spec.rb')
-rw-r--r--spec/unit/knife/user_edit_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/knife/user_edit_spec.rb b/spec/unit/knife/user_edit_spec.rb
index d7db1aac29..ec118ed181 100644
--- a/spec/unit/knife/user_edit_spec.rb
+++ b/spec/unit/knife/user_edit_spec.rb
@@ -36,17 +36,17 @@ describe Chef::Knife::UserEdit do
context "when the username field is not supported by the server" do
before do
allow(knife).to receive(:run_osc_11_user_edit).and_raise(SystemExit)
- allow(Chef::UserV1).to receive(:load).and_return({"username" => nil})
+ allow(Chef::UserV1).to receive(:load).and_return({ "username" => nil })
end
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 "forwards the command to knife osc_user edit" do
expect(knife).to receive(:run_osc_11_user_edit)
- expect{ knife.run }.to raise_error(SystemExit)
+ expect { knife.run }.to raise_error(SystemExit)
end
end