#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'
end
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

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

Pages