Skip to content

Commit

Permalink
Fix minor typos
Browse files Browse the repository at this point in the history
```
codespell **/*.rb **/*.md -L initalize,unvalid
```
  • Loading branch information
tagliala committed Jun 18, 2024
1 parent e5f8835 commit 193cd6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/authorization_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def to_params(*args, **kwargs, &block)
expect(controller.policy_scope(Post)).to eq :published
end

it "allows policy scope class to be overriden" do
it "allows policy scope class to be overridden" do
expect(controller.policy_scope(Post, policy_scope_class: PublicationPolicy::Scope)).to eq :published
end

Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def self.all; end
class ThreadPolicy < BasePolicy
class Scope < BaseScope
def resolve
# deliberate wrong useage of the method
# deliberate wrong usage of the method
scope.all(:unvalid, :parameters)
end
end
Expand Down

0 comments on commit 193cd6e

Please sign in to comment.