Skip to content

Commit

Permalink
s/overriden/overridden/
Browse files Browse the repository at this point in the history
  • Loading branch information
ydah authored and JonRowe committed Sep 12, 2022
1 parent 3435a32 commit 208708e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/rspec/support_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def method_missing(name, *args, &block)
end

it 'fails with `NameError` when an undefined method is fetched ' +
'from an object that has overriden `method` to raise an Exception' do
'from an object that has overridden `method` to raise an Exception' do
object = double
allow(object).to receive(:method).and_raise(Exception)
expect {
Expand All @@ -59,7 +59,7 @@ def method_missing(name, *args, &block)
end

it 'fails with `NameError` when a method is fetched from an object ' +
'that has overriden `method` to not return a method' do
'that has overridden `method` to not return a method' do
object = proxy_class.new(double(:method => :baz))
expect {
Support.method_handle_for(object, :=~)
Expand Down Expand Up @@ -102,7 +102,7 @@ def method_missing(name, *args, &block)
expect(Support.method_handle_for(object, :foo).call).to eq :bar
end

it 'works when `method` has been overriden', :if => supports_rebinding_module_methods? do
it 'works when `method` has been overridden', :if => supports_rebinding_module_methods? do
object = basic_class_with_method_override.new
expect(Support.method_handle_for(object, :foo).call).to eq :bar
end
Expand Down

0 comments on commit 208708e

Please sign in to comment.