Browse Source

Combine double subjects in application controller shared example (#28938)

dariusk-working/4_3_0
Matt Jankowski 2 years ago committed by GitHub
parent
commit
beaef4b672
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 9
      spec/controllers/application_controller_spec.rb

9
spec/controllers/application_controller_spec.rb

@ -22,13 +22,10 @@ describe ApplicationController do
end
shared_examples 'respond_with_error' do |code|
it "returns http #{code} for http" do
subject
expect(response).to have_http_status(code)
end
it 'renders template for http' do
it "returns http #{code} for http and renders template" do
expect(subject).to render_template("errors/#{code}", layout: 'error')
expect(response).to have_http_status(code)
end
end

Loading…
Cancel
Save