1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00

Use head instead of render: nothing in tests

`render nothing: true` was removed from Rails 5.1 and has no effect
anymore -- it was replaced with `head`.
This commit is contained in:
Elliot Winkler 2017-09-26 17:19:44 -05:00
parent 6ea9afc106
commit 158839b3a6
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ describe 'shoulda-matchers integrates with Rails' do
class ExamplesController < ApplicationController class ExamplesController < ApplicationController
def show def show
@example = 'hello' @example = 'hello'
render nothing: true head :ok
end end
end end
FILE FILE

View file

@ -586,7 +586,7 @@ describe Shoulda::Matchers::ActionController::PermitMatcher, type: :controller d
end end
end end
render nothing: true head :ok
end end
end end