#136 ✓resolved
Kieran P

webrat_deprecate doesn't work on rake initialization

Reported by Kieran P | January 19th, 2009 @ 11:46 PM

When you run the rake task, before the tests are loaded and run, the webrat_deprecate method exists but doesn't work as expected.

/opt/ruby-enterprise-1.8.6-20090113/bin/ruby -Ilib:test "/opt/ruby-enterprise-1.8.6-20090113/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader.rb" "test/selenium/001_configuration_test.rb" 
./test/selenium/../integration/integration_test_helper.rb:21: undefined method `selenium_environment=' for #<Webrat::Configuration:0x3d69eb4> (NoMethodError)
from /opt/ruby-enterprise-1.8.6-20090113/lib/ruby/gems/1.8/gems/webrat-0.4.0/lib/webrat/core/configuration.rb:8:in `configure'

Instead of giving me a useful message like 'visits' in a test does, it errors out with a no method error. I've renamed to the new name, so it's not a blocker, but it did take a few minutes to find out why something that worked a day ago no longer does...

Comments and changes to this ticket

  • Bryan Helmkamp

    Bryan Helmkamp January 25th, 2009 @ 04:55 PM

    • State changed from “new” to “resolved”

    We were missing aliased methods for selenium_environment= (we had added them for the reader only).

    This has been resolved in master.

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