Re: [rspec-users] rspec_resource error

2007-07-26 Thread Marcus Crafter
Hi Paul, On 27/07/2007, at 1:13 AM, Paul Brackenridge wrote: > When I run script/generate I get the following: > > Installed Generators > Plugins: authenticated, rspec, rspec_controller, rspec_model, > rspec_scaffold > Builtin: controller, integration_test, mailer, migration, model, > obs

Re: [rspec-users] Accessing content_for html in view specs?

2007-07-16 Thread Marcus Crafter
On 16/07/2007, at 9:11 PM, Tom Stuart wrote: > On 16 Jul 2007, at 12:02, Marcus Crafter wrote: >> <% content_for :blah do %> . <% end %> >> Has anyone worked out a way to be able to access the html that's >> generated inside those blocks? > > It

[rspec-users] Accessing content_for html in view specs?

2007-07-16 Thread Marcus Crafter
Hi All, Hope all is going well. I've got a few views that create some content using 'content_for' blocks <% content_for :blah do %> . <% end %> Has anyone worked out a way to be able to access the html that's generated inside those blocks? Since they're not part of the view, have

[rspec-users] Edge, link_to and mocks

2007-07-05 Thread Marcus Crafter
Hi All, Anyone noticed that using the newer link_to syntax in edge currently fails with mocked objects in view specs or helpers. eg. if you have something like the following in your view (or equivalent in a helper): <%= link_to @dog.name, @dog %> as opposed to the current 1.2 syntax