summaryrefslogtreecommitdiff
path: root/spec/command_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/command_spec.rb')
-rw-r--r--spec/command_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/command_spec.rb b/spec/command_spec.rb
index b676be81..d56bc09a 100644
--- a/spec/command_spec.rb
+++ b/spec/command_spec.rb
@@ -342,7 +342,7 @@ RSpec.describe Pry::Command do
before { subject.command_options(use_prefix: true) }
it "returns a Regexp without a prefix" do
- expect(subject.command_regex).to eq(/^test\-command(?!\S)/)
+ expect(subject.command_regex).to eq(/\Atest\-command(?!\S)/)
end
end
@@ -350,7 +350,7 @@ RSpec.describe Pry::Command do
before { subject.command_options(use_prefix: false) }
it "returns a Regexp with a prefix" do
- expect(subject.command_regex).to eq(/^(?:)?test\-command(?!\S)/)
+ expect(subject.command_regex).to eq(/\A(?:)?test\-command(?!\S)/)
end
end
end