Closed jcoyne closed 3 weeks ago
@jrochkind I think it's just a matter of preference. https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecclasscheck is the rule
@jrochkind 💬
Any idea what made
be_a_kind_of
, that apparently previously worked, stop working and have to be changed tobe_a
?(The mystery might be why
be_a_kind_of
ever worked! The correct method name, that I think still would be working as a synonum tobe_a
, isbe_kind_of
(no_a_
))
RSpec allows a bunch of different forms: https://github.com/rspec/rspec-expectations/blob/main/lib/rspec/matchers.rb#L372-L382
Ah, so it had to be changed in this PR becuase you enabled a rubocop rule that forced it to be changed? Okeydoke!
Any idea what made
be_a_kind_of
, that apparently previously worked, stop working and have to be changed tobe_a
?(The mystery might be why
be_a_kind_of
ever worked! The correct method name, that I think still would be working as a synonum tobe_a
, isbe_kind_of
(no_a_
))