Skip to content

Commit

Permalink
various: fix miscellaneous typos
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Linnane <patrick@linnane.io>
  • Loading branch information
p-linnane committed Feb 16, 2024
1 parent c53802d commit 8f721e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/rubocop/cop/rspec/redundant_predicate_matcher.rb
Expand Up @@ -27,7 +27,7 @@ class RedundantPredicateMatcher < Base

def on_send(node)
return if node.parent.block_type? || node.arguments.empty?
return unless replacable_arguments?(node)
return unless replaceable_arguments?(node)

method_name = node.method_name.to_s
replaced = replaced_method_name(method_name)
Expand All @@ -45,7 +45,7 @@ def message(bad_method, good_method)
format(MSG, bad: bad_method, good: good_method)
end

def replacable_arguments?(node)
def replaceable_arguments?(node)
if node.method?(:be_all)
node.first_argument.send_type?
else
Expand Down
2 changes: 1 addition & 1 deletion spec/rubocop/cop/rspec/spec_file_path_format_spec.rb
Expand Up @@ -172,7 +172,7 @@
RUBY
end

it 'registers an offense when path containing the class nam' do
it 'registers an offense when path containing the class name' do
filename = '/home/foo/spec/models/bar_spec.rb'
expect_offense(<<~RUBY, filename)
describe Foo do; end
Expand Down

0 comments on commit 8f721e1

Please sign in to comment.