I suppose that if this PR is beneficial for RSpec, this breaking change will be released for upcoming new major version 4.0 or later. For preparing the change I created another PR rspec/rspec-core#3073 to output deprecation warning in the same condition.
Related issue: rspec/rspec#40
To keep the first argument a string object, it raises ArgumentError when non string object were given as doc_string.
Currently example recognize its first argument as doc_string even if it is not a string object. For example,
In the example above,
:pending
does not work and fails like belowI suppose that if this PR is beneficial for RSpec, this breaking change will be released for upcoming new major version 4.0 or later. For preparing the change I created another PR rspec/rspec-core#3073 to output deprecation warning in the same condition.