There seems to be a problem with Rack::Test or similar area. When
from them. A quick fix is to put this in config/initializers/
> Hum... now that you told me that I take a look here and all the failures
> occur in sign in forms, using authlogic. I'll see if there's a newer version
> of Authlogic that maybe is not causing that problem.
> Thanks!
> On Sun, May 23, 2010 at 11:54 PM, Daniel <daniel.gaiott...@gmail.com> wrote:
> > I've run into this error as well after upgrading to Rails 2.3.6. I
> > only get the error on the sign_out button on our app and I've followed
> > the problem into rack-test. Specifically it is the replaces?(other)
> > method in cookie_jar.rb where the error occurs since "name" is nil and
> > name.downcase causes the error.
> > def replaces?(other)
> > [name.downcase, domain, path] == [other.name.downcase, other.domain,
> > other.path]
> > end
> > gems/rack-test-0.5.3/lib/rack/test/cookie_jar.rb:29:in `replaces?'
> > Since I only see the error on sign_out and sign_out is handled by
> > clearance (an old version too) my next step is to rip out clearance in
> > favor of devise to see if this solves the issue.
> > If you find another solution please share :)
> > - Daniel
> > On May 23, 5:18 pm, Cássio Marques <cassio...@gmail.com> wrote:
> > > Hi folks,
> > > In every step definition where I have a click_button call I'm getting the
> > > following error:
> > > undefined method `downcase' for nil:NilClass (NoMethodError)
> > > It happens only in non-JS scenarios. For the scenarios where I use
> > Selenium
> > > everything is fine.
> > > I did a quick search through the Capybara code base but could not find
> > the
> > > origin of this error... if someone could point it to me I can try to
> > patch
> > > it.
> > > Thanks!
> > > --
> > > Cássio Marques
> > > Blog:http://cassiomarques.wordpress.com
> > > If you're writing code and you're not testing it, the code is wrong. I
> > don't
> > > care if it does the right thing, and people need to understand this. If
> > it
> > > works by accident, you're still wrong.
> > > Bryan Liles - Ruby Hoedown 2008
> --
> Cássio Marques
> Blog:http://cassiomarques.wordpress.com
> If you're writing code and you're not testing it, the code is wrong. I don't
> care if it does the right thing, and people need to understand this. If it
> works by accident, you're still wrong.
> Bryan Liles - Ruby Hoedown 2008