Skip to content

Instantly share code, notes, and snippets.

@teitei-tk
Created July 6, 2018 03:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save teitei-tk/ed7197f9e6393e43817e6b7c8c698b5b to your computer and use it in GitHub Desktop.
Save teitei-tk/ed7197f9e6393e43817e6b7c8c698b5b to your computer and use it in GitHub Desktop.
Rails4からRails5へのテストケースでキーワード引数を機械的に一括変換する。 ref: https://qiita.com/teitei_tk/items/a95f6ec928b2b51559ad
post url, hoge: 'foo'
post url, params: { hoge: 'foo' }
$ bundle install --path vendor/bundle
$ bundle exec rails5-spec-converter
+ gem 'rails5-spec-converter'
get :index
params: {
search: 'bayleef'
},
format: :json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment