You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the subject is a BasicObject (which of course doesn't have respond_to?, is_a? and others) then RSpec (or rspec/its) cannot generate the test description.
example at .<spec file>:10 (Got an error when generating description from matcher: NoMethodError: undefined method `is_a?' for #<Foo:0x007fcd4c3bd938> -- /.../ruby-2.4.1/gems/activesupport-5.1.4/lib/active_support/core_ext/time/calculations.rb:16:in `===')
I'm not sure of there's the "right" way to fix this as it is not even possible to use respond_to? on the BasicObject.
But worth raising this.
The text was updated successfully, but these errors were encountered:
When the subject is a
BasicObject
(which of course doesn't haverespond_to?
,is_a?
and others) then RSpec (or rspec/its) cannot generate the test description.Example code:
This generates output similar to:
I'm not sure of there's the "right" way to fix this as it is not even possible to use
respond_to?
on the BasicObject.But worth raising this.
The text was updated successfully, but these errors were encountered: