Re: [rspec-users] autotest debugger?

2007-11-02 Thread Jamal Soueidan
Scott Taylor wrote: On Nov 1, 2007, at 6:18 AM, Jamal Soueidan wrote: @user.errors.on(:email).should_not be_empty ...throws error failure This is not an autotest problem, this is a test problem. Usually I start adding extra tests: it should not raise an error with a new user

Re: [rspec-users] Can't delete app/helpers

2007-11-02 Thread Chris Olsen
Hans de Graaff wrote: Looks like you still have a (possibly generated?) spec for this helper. Kind regards, Hans I do, but the issue is that it requires the app/helpers/addresses_helper.rb file, which is that one that I am trying to delete. `load_missing_constant': Expected

[rspec-users] RSpec, RESTful nested routes and :path_prefix

2007-11-02 Thread Harm Aarts
Dear list, In the app we are making we have a rout something like this: map.resources :projects do |projects| projects.resources :pages, :controller =Wiki::Pages, :path_prefix = /projects/:project_id/ wiki, :name_prefix = project_wiki_ end But I can't get RSpec(I'm very new to it) to

Re: [rspec-users] autotest debugger?

2007-11-02 Thread Scott Taylor
On Nov 2, 2007, at 4:48 AM, Jamal Soueidan wrote: Scott Taylor wrote: On Nov 1, 2007, at 6:18 AM, Jamal Soueidan wrote: @user.errors.on(:email).should_not be_empty ...throws error failure This is not an autotest problem, this is a test problem. Usually I start adding extra tests: it

[rspec-users] Test that controller includes helpers?

2007-11-02 Thread Steve
Is there an easy way to spec that a controller should include helpers other than its own? I was thinking I could just spec responds_to for methods I'm interested in in the view, but that seems like crossing a separation boundary, that the controller maybe doesn't need to know about? Thanks, Steve

Re: [rspec-users] RSpec, RESTful nested routes and :path_prefix

2007-11-02 Thread Nola Stowe
I had a problem when I used: script/generate rspec_scaffold admin/users it created the specs with the controller name is admin_user instead of admin/user which I think should be correct. So I had to go through all the rspec generated files and change the _ to / I actually would like to

[rspec-users] Specs for Helpers that call render

2007-11-02 Thread Peter
The helper spec I am writing tests a helper method that calls render. ## module HelperHelper def render_partial render :partial = 'partial' end end ## The helper spec. ## describe HelperHelper do it should render partial do render_partial.should_not == nil end end ## The

Re: [rspec-users] RSpec, RESTful nested routes and :path_prefix

2007-11-02 Thread Nola Stowe
I had a problem when I used: script/generate rspec_scaffold admin/users it created the specs with the controller name is admin_user instead of admin/user which I think should be correct. So I had to go through all the rspec generated files and change the _ to / did you use rspec_scaffolding?

[rspec-users] stub calls to an instance method before it is created?

2007-11-02 Thread Shane Wolf
I am desperately in need of functionality such as Mocha offers with their any_instance method. I see that there is an open ticket for a similar feature in RSpec, but it does not look like anything have been done. Is there any other way around this?

Re: [rspec-users] stub calls to an instance method before it is created?

2007-11-02 Thread David Chelimsky
On Nov 2, 2007 2:36 AM, Shane Wolf [EMAIL PROTECTED] wrote: I am desperately in need of functionality such as Mocha offers with their any_instance method. I see that there is an open ticket for a similar feature in RSpec, but it does not look like anything have been done. Is there any other

Re: [rspec-users] Specs for Helpers that call render

2007-11-02 Thread David Chelimsky
On Nov 2, 2007 8:32 PM, Peter [EMAIL PROTECTED] wrote: The helper spec I am writing tests a helper method that calls render. ## module HelperHelper def render_partial render :partial = 'partial' end end ## The helper spec. ## describe HelperHelper do it should render