Update rpsec-controllers

This commit is contained in:
Rico Sta. Cruz 2015-03-06 18:09:17 +08:00
parent 7a57b4f928
commit 48c37b38f9
1 changed files with 16 additions and 3 deletions

View File

@ -4,6 +4,19 @@ layout: default
---
```rb
expect(response).to be_success
expect(response).to have_http_status(200)
expect(response).to render_template("index")
describe MyController do
describe "POST update" do
it "works" do
post :update, { user: { name: "john" } }
controller
controller.send ...
response
expect(response).to be_success
expect(response).to have_http_status(200)
expect(response).to render_template("index")
end
end
end
```