Re: [Wtr-general] NoMethodError for verify method in assertions.rb
Tiffany Fodor wrote: > I just added that line to the rest of the require/include statements at the > beginning of my script and it did the trick. > It is a common practice to put the require and include statements together, but I don't recommend it. I intend to remove all examples of this from the Watir unit tests and examples. My view is that it is best to put the includes where you need them. If you put them on the top of the file, you are modifying the global Object class, which, someday, could have unfortunate consequences. Include is a "mixin" and supports a form of multiple inheritance. I think it should be used in this context. Bret ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] NoMethodError for verify method in assertions.rb
I just added that line to the rest of the require/include statements at the beginning of my script and it did the trick. Thanks so much! -Tiffany ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] NoMethodError for verify method in assertions.rb
Tiffany Fodor wrote: > Hi all! > > I'm trying to use the verify method from assertions.rb, but I keep getting > the following error: > > undefined method 'verify' for main:Object (NoMethodError) > > I've added > require "watir/assertions" > to the beginning of my script, but still can't use the verify method. Is > anyone else using this successfully? > You will also need to add an Include Watir::Assertions to your test code. If you show us your test code, we can show you where it goes. Bret ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] NoMethodError for verify method in assertions.rb
Hi all! I'm trying to use the verify method from assertions.rb, but I keep getting the following error: undefined method 'verify' for main:Object (NoMethodError) I've added require "watir/assertions" to the beginning of my script, but still can't use the verify method. Is anyone else using this successfully? Thanks! -Tiffany ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general