yujinakayama/transpec

Transpec didn't update `type: :route` to `type: :routing`

dgmstuart opened this issue · 3 comments

Hi - I had some passing specs on 2.99 which were like:

RSpec.describe "routing to verifications", type: :route do

...but in RSpec 3 the correct form is:

RSpec.describe "routing to verifications", type: :routing do

Is Transpec expected to have updated this, or was :route never a thing anyway?

(P.S. Thanks so much for transpec: it's magic!!)

It's intentional. Transpec automatically adds :type metadata only when it's not yet speified. If you explicitly specified the wrong :type metadata, it's your responsibility.

OK thanks for letting me know.

As I understand it though type: :route isn't wrong - just out of date.