diff --git a/.codespellignore b/.codespellignore new file mode 100644 index 0000000..e69de29 diff --git a/.github/workflows/codespell.yaml b/.github/workflows/codespell.yaml new file mode 100644 index 0000000..fae65a6 --- /dev/null +++ b/.github/workflows/codespell.yaml @@ -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 diff --git a/lib/rspec/sidekiq/batch.rb b/lib/rspec/sidekiq/batch.rb index 0052639..00d69a6 100644 --- a/lib/rspec/sidekiq/batch.rb +++ b/lib/rspec/sidekiq/batch.rb @@ -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. # diff --git a/spec/rspec/sidekiq/matchers/be_delayed_spec.rb b/spec/rspec/sidekiq/matchers/be_delayed_spec.rb index 2111159..8662236 100644 --- a/spec/rspec/sidekiq/matchers/be_delayed_spec.rb +++ b/spec/rspec/sidekiq/matchers/be_delayed_spec.rb @@ -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