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

Commit a35f9d8

Browse files
committed
Add missing require for matcher_definition.rb in object_formatter.rb
``` $ pry [1] pry(main)> require 'rspec/support' => true [2] pry(main)> RSpec::Support.require_rspec_support 'object_formatter' => true [3] pry(main)> RSpec::Support::ObjectFormatter.format(:foo) NoMethodError: undefined method `is_a_matcher?' for RSpec::Support:Module from /Users/me/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rspec-support-3.4.1/lib/rspec/support/object_formatter.rb:36:in `prepare_for_inspection' ```
1 parent 635f4b5 commit a35f9d8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/rspec/support/object_formatter.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
RSpec::Support.require_rspec_support 'matcher_definition'
2+
13
module RSpec
24
module Support
35
# Provide additional output details beyond what `inspect` provides when

0 commit comments

Comments
 (0)
close