Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # In this example, the return value from the "run" block is available in the examples as "result".
- # A minor improvement, perhaps too forward.
- Spec.describe "When making a request to '/login'" do
- describe "as an unauthenticated user" do
- run do
- request("/login")
- end
- it "returns a 401 status" do
- result.status.should == 401
- end
- it "contains the login form" do
- result.body.should have_selector("/something/i/can/not/work/out")
- end
- end
- end
Add Comment
Please, Sign In to add comment