tjgrathwell / rails5-spec-converter

A tool to upgrade Rails 4-style specs to Rails 5-style
MIT License
176 stars 14 forks source link

Do not wrap the :headers / :xhr attributes within :params #14

Open vongruenigen opened 5 years ago

vongruenigen commented 5 years ago

This PR fixes issue #13: We should wrap the :headers hash within :params as :headers can be used to set HTTP headers when doing HTTP request in rails tests (see here).

vongruenigen commented 5 years ago

As explained in the issue #13, the :xhr key has the same problem as :headers. My last commit fixed this as well.