Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pirj committed Aug 4, 2024
1 parent 690f7cd commit aa5a7cc
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 77 deletions.
4 changes: 0 additions & 4 deletions lib/rspec/matchers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -795,10 +795,6 @@ def respond_to(*names)
alias_matcher :an_object_responding_to, :respond_to
alias_matcher :responding_to, :respond_to

def return_value(value)
BuiltIn::ReturnValue.new(value)
end

# Passes if the submitted block returns true.
# For value expectations, yields target to the block.
# For block expectations, yields the expectation's returned value to the block.
Expand Down
1 change: 0 additions & 1 deletion lib/rspec/matchers/built_in.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ module BuiltIn
autoload :PositiveOperatorMatcher, 'rspec/matchers/built_in/operators'
autoload :RaiseError, 'rspec/matchers/built_in/raise_error'
autoload :RespondTo, 'rspec/matchers/built_in/respond_to'
autoload :ReturnValue, 'rspec/matchers/built_in/return_value'
autoload :Satisfy, 'rspec/matchers/built_in/satisfy'
autoload :StartWith, 'rspec/matchers/built_in/start_or_end_with'
autoload :ThrowSymbol, 'rspec/matchers/built_in/throw_symbol'
Expand Down
72 changes: 0 additions & 72 deletions lib/rspec/matchers/built_in/return_value.rb

This file was deleted.

0 comments on commit aa5a7cc

Please sign in to comment.