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:
parent
6ea9afc106
commit
158839b3a6
2 changed files with 2 additions and 2 deletions
|
@ -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 a new issue