I'm having trouble logging into RubyForge (might be my firewall, both  
firefox and safari are not taking its cookie).

I wanted to add this comment to
http://rubyforge.org/tracker/index.php? 
func=detail&aid=12714&group_id=797&atid=3149

------------

The pagination helper has been removed from rails edge. To avoid a  
runtime error I commented out line 33 in rspec_on_rails/lib/rails/dsl/ 
behavior/helper.rb

     # include ActionView::Helpers::PaginationHelper



On Jul 31, 2007, at 6:20 AM, David Chelimsky wrote:

> On 7/31/07, David Chelimsky <[EMAIL PROTECTED]> wrote:
>> On 7/30/07, linojon <[EMAIL PROTECTED]> wrote:
>>> Hi,
>>>
>>> My helper specs were going ok until I added a call to a rails
>>> DateHelper method in one of my helpers
>>> http://api.rubyonrails.com/classes/ActionView/Helpers/
>>> DateHelper.html#M000574
>>>
>>> The helper runs fine from my view templates, just dies in the  
>>> spec test.
>>>
>>> I boiled my question down to a simple (not too useful) example. I'm
>>> not sure what I'm missing.
>>>
>>> # application_helper.rb
>>> module ApplicationHelper
>>>
>>>    def app_foo
>>>      t = Time.now
>>>      distance_of_time_in_words( t, t + 50.minutes)
>>>      return true
>>>    end
>>> end
>>>
>>> # application_helper_spec.rb
>>> require File.dirname(__FILE__) + '/../spec_helper'
>>>
>>> describe ApplicationHelper do
>>>    it "should find app_foo in application_helpers.rb" do
>>>      app_foo.should be_true
>>>    end
>>> end
>>>
>>> # error output
>>> NoMethodError in 'ApplicationHelper should find app_foo in
>>> application_helpers.rb'
>>> undefined method `distance_of_time_in_words' for [Dynamically
>>> generated class for RSpec example]:#<Class:0x32d11c8>
>>
>> Please put bug reports, feature requests, and patches here:
>>
>> http://rubyforge.org/tracker/index.php?group_id=797
>
> I went ahead and entered and fixed this:
>
> http://rubyforge.org/tracker/index.php? 
> func=detail&aid=12714&group_id=797&atid=3149
>
> Please do report bugs to the tracker, however. I am not always able to
> jump on things I see on this list.
>
> Cheers,
> David
>
>>
>>> _______________________________________________
>>> rspec-users mailing list
>>> rspec-users@rubyforge.org
>>> http://rubyforge.org/mailman/listinfo/rspec-users
>>>
>>
> _______________________________________________
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to