Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit e1ca32b

Browse files
committed
Fix typo in Parser#parser
[ci skip]
1 parent d148026 commit e1ca32b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rspec/core/option_parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def parser(options)
151151
begin
152152
Integer(argument)
153153
rescue ArgumentError
154-
RSpec.warning "Non integer specified as profile count, seperate " \
154+
RSpec.warning "Non-integer specified as profile count, separate " \
155155
"your path from options with -- e.g. " \
156156
"`rspec --profile -- #{argument}`",
157157
:call_site => nil

spec/rspec/core/option_parser_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def generate_help_text
335335
end
336336

337337
it 'warns when accidentally combined with path' do
338-
expect_warning_without_call_site "Non integer specified as profile count"
338+
expect_warning_without_call_site "Non-integer specified as profile count"
339339
options = Parser.parse(%w[--profile some/path])
340340
expect(options[:profile_examples]).to eq true
341341
end

0 commit comments

Comments
 (0)