Skip to content

Add spell checking GitHub Actions workflow #241

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .codespellignore
Empty file.
15 changes: 15 additions & 0 deletions .github/workflows/codespell.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: CodeSpell
on:
- pull_request
jobs:
codespell:
name: CodeSpell
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: CodeSpell
uses: codespell-project/actions-codespell@master
with:
check_filenames: true
check_hidden: true
ignore_words_file: .codespellignore
2 changes: 1 addition & 1 deletion lib/rspec/sidekiq/batch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def method_missing(*args, &block)

##
# Sidekiq::Batch is a Sidekiq::Pro feature. However the general consensus is
# that, by defeault, you can't test without redis. RSpec::Sidekiq includes
# that, by default, you can't test without redis. RSpec::Sidekiq includes
# a "null object" pattern implementation to mock Batches. This will mock
# Sidekiq::Batch and prevent it from using Redis.
#
Expand Down
4 changes: 2 additions & 2 deletions spec/rspec/sidekiq/matchers/be_delayed_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@

context "and actual contains arguments" do
it "returns true" do
# Acutal has arugment
# Actual has argument
Object.delay.is_a? Object

# Expected didn't specify any arguemtns to match
# Expected didn't specify any arguments to match
expect(delay_subject.matches? Object.method :is_a?).to be true
end
end
Expand Down