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 aabb344 commit f49de60
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 @@ -166,7 +166,7 @@
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 @@ -250,7 +250,7 @@ def self.all; end
class ThreadPolicy < Struct.new(:user, :thread)
class Scope < Struct.new(:user, :scope)
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 f49de60

Please sign in to comment.