chintanparikh/TechList — pull request #3 by chintanparikh (2012-08-08 21:08:10+00:00)
Title: Chore/fix section and listing specs

Fixed a bunch of specs that I broke in develop (I really should have run rake spec before pushing, my bad)

```bash
Finished in 2.4 seconds
35 examples, 0 failures
```

You'll notice that some of the breaking specs indicated that my listings_controller was broken (hooray for specs!), and so I've fixed that as well.

I've also added the shared example "Unauthorized action". Basically, it should be used when your testing that the user should be unauthorized. In this case, I've used it to make sure that listings#new redirects to the login path instead of rendering the form. As we update the application and update the AccessDenied paths, we'll need to update the shared example.

Anyway, have a read over, if there's anything you don't understand, do let me know. Once you've read over it, just comment something, and I'll merge it in (or you can merge it in if you want)