Skip to content

Commit

Permalink
Fix #success? deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
steventux committed Sep 5, 2018
1 parent a8c6ea6 commit ed4e78f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/support/govuk_contact.rb
Expand Up @@ -2,13 +2,13 @@
context "on GET" do
it "returns http success" do
get :new
expect(response).to be_success
expect(response).to be_successful
end

it "should set cache control headers for 10 mins" do
get :new
expect(response.headers["Cache-Control"]).to eq("max-age=600, public")
expect(response).to be_success
expect(response).to be_successful
end

it "should return 406 when text/html isn't acceptable" do
Expand Down

0 comments on commit ed4e78f

Please sign in to comment.