[rspec-users] spork doesn't find helpers

Matt Wynne matt at mattwynne.net
Sat Nov 28 06:16:43 EST 2009


I should try asking about this on
http://groups.google.com/group/sporkgem

On 28 Nov 2009, at 00:52, Martin wrote:

> I forgot to tell you the versions I'm using:
>
> spork: 0.7.3
> rspec: 1.2.9
> rails: 2.3.5
>
>
>> Hi,
>> I'm running into a problem with spork:
>> The helper methods in app/helpers/simpler_helper.rb are not found  
>> when using spork:
>> > rake spec
>> (in longPath/test1)
>> ..F..........................
>> 1)
>> ActionView::TemplateError in '/items/index.html.erb renders a list  
>> of items'
>> undefined method `simpleFunction' for #<ActionView::Base:0x250a954>
>> On line #7 of app/views/items/index.html.erb
>>    4:   <tr>
>>    5:     <th>Name</th>
>>    6:   </tr>
>>    7: <%= simpleFunction() %>
>>    8: <% @items.each do |item| %>
>>    9:   <tr>
>>    10:     <td><%=h item.name %></td>
>> But 'simpeFunction' is defined in app/helpers/simpler_helper.rb.
>> Running rake spec without spork works correctly.
>> Can you point me the right direction please?
>> Thanks,
>> Martin
>> _______________________________________________
>> rspec-users mailing list
>> rspec-users at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/rspec-users
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

cheers,
Matt

http://mattwynne.net
+447974 430184



More information about the rspec-users mailing list