Skip to content

Commit

Permalink
Merge pull request #815 from tagliala/chore/fix-typos
Browse files Browse the repository at this point in the history
Fix minor typos
  • Loading branch information
Burgestrand committed Jul 8, 2024
2 parents e5f8835 + 193cd6e commit e3b4408
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 e3b4408

Please sign in to comment.