Ticket #45 (closed enhancement: fixed)

Opened 2 years ago

Last modified 1 year ago

First stab at Controller Specs

Reported by: brian.taki..@gmail.com Assigned to: somebody
Priority: major Milestone:
Component: Views Keywords:
Cc:

Description

This patch is a beginning of controller specs. It includes get and post methods.

For example,

describe FooController?, "receives bar" do

it "does a get" do

get "bar..@request.should be_get

end

end

So far, there isn't support for assertions.

Here are some things of consideration: * The controller Description class has a controller_class accessor. If the first argument of describe is set to the controller class, the examples will know that the requests are for the controller. * I couldn't figure out how to construct the correct uri given the controller and the action.

Attachments

controller_specs.patch (15.1 kB) - added by brian.taki..@gmail.com on 05/06/07 23:21:16.
The first stab at the controller specs
controller_specs.2.patch (15.1 kB) - added by anonymous on 05/09/07 00:33:47.
This one uses Mongrel::HttpResponse? instead

Change History

05/06/07 23:21:16 changed by brian.taki..@gmail.com

  • attachment controller_specs.patch added.

The first stab at the controller specs

05/09/07 00:33:47 changed by anonymous

  • attachment controller_specs.2.patch added.

This one uses Mongrel::HttpResponse? instead

07/11/07 07:20:27 changed by anonymous

  • cc set to painting.
  • component changed from Views to Merb.
  • summary changed from First stab at Controller Specs to game.
  • priority changed from major to blocker.
  • owner deleted.
  • milestone set to The Future.
  • keywords set to game.
  • type changed from enhancement to task.

07/16/07 13:29:56 changed by j..@luretanker.no

  • cc deleted.
  • component changed from Merb to Views.
  • summary changed from game to First stab at Controller Specs.
  • priority changed from blocker to major.
  • owner set to somebody.
  • milestone deleted.
  • keywords deleted.
  • type changed from task to enhancement.

11/02/07 22:23:54 changed by e.@brainspl.at

  • status changed from new to closed.
  • resolution set to fixed.

closing this as spec harness is built into merb now.;

Thanks