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.rb2
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 3c9a9d3a78..be3d2fd99c 100644
--- a/spec/unit/knife/user_create_spec.rb
+++ b/spec/unit/knife/user_create_spec.rb
@@ -112,7 +112,7 @@ describe Chef::Knife::UserCreate do
it "prints a relevant error message" do
expect { knife.run }.to raise_error(SystemExit)
- expect(stderr.string).to match /You cannot pass --user-key and --prevent-keygen/
+ expect(stderr.string).to match(/You cannot pass --user-key and --prevent-keygen/)
end
end