It should behave like resource

One pillar of my high code-coverage is this little plugin, which allows you to simply state that a controller or a action should behave RESTfully.

So far it is experimental, meaning it works on my machine 🙂
Any testers and contributes highly welcome.

Install instruction and usage.


describe UsersController do
  before :each do
    login_as :quentin #if your controllers need login
    @item = @user = stub_model(User)#or anything else that has a to_param method


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s