#137 ✓resolved
Kieran P

wait_for causes errors in test::unit

Reported by Kieran P | January 20th, 2009 @ 12:21 AM | in 0.4.2

I'm getting this when running wait_for in a test like so:

wait_for do
  click_link 'Login'
assert response.body.includes?('Welcome')

And this the error I get:

NameError: uninitialized constant Spec
  /Users/kieran/Work/kete_trunk/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:278:in `load_missing_constant'
  /Users/kieran/Work/kete_trunk/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:467:in `rake_original_const_missing'
  /opt/ruby-enterprise-1.8.6-20090113/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2465:in `const_missing'
  /Users/kieran/Work/kete_trunk/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:479:in `const_missing'
  /opt/ruby-enterprise-1.8.6-20090113/lib/ruby/gems/1.8/gems/webrat-0.4.0/lib/webrat/selenium/selenium_session.rb:145:in `wait_for'
  /opt/ruby-enterprise-1.8.6-20090113/lib/ruby/gems/1.8/gems/webrat-0.4.0/lib/webrat/selenium.rb:78:in `wait_for'

Comments and changes to this ticket

  • Bryan Helmkamp

    Bryan Helmkamp January 20th, 2009 @ 12:31 AM

    • Milestone set to 0.4.1
  • gaffo

    gaffo January 21st, 2009 @ 12:17 AM

    • Tag changed from bug, errors, selenium, seleniumsession, spec, wait_for to bug, errors, selenium, seleniumsession, spec, verify, wait_for
    • State changed from “new” to “awaiting-patch”

    Could you toss that into a pull requets on github? It makes things go much easier.

  • Bryan Helmkamp

    Bryan Helmkamp February 8th, 2009 @ 11:21 PM

    • Milestone changed from 0.4.1 to 0.4.2
  • Bryan Helmkamp

    Bryan Helmkamp June 14th, 2009 @ 10:10 PM

    • Assigned user changed from “Bryan Helmkamp” to “gaffo”
    • State changed from “awaiting-patch” to “resolved”

    Thanks for the report Kieran. I believe this issue is resolved in the latest master. Please let us know if you run into any further issues.



Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Ruby Acceptance Testing for Web applications.

Shared Ticket Bins

People watching this ticket