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:
parent
6ea9afc106
commit
158839b3a6
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue