On Nov 2, 2007 5:59 PM, Steve <[EMAIL PROTECTED]> wrote:
> 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
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
>i
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 ot
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?
https://rubyforge.org/tracker/index.php?func=det
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_scaffoldi
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
##
Th
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 in
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
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
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
/Users/c
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)
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
12 matches
Mail list logo