Watir changes highline's "ask" method
- by grundic
Hello!
I've encoutered some strange functionality, when using Watir and Highline together.
Here is simple example:
require 'highline/import'
comp = ask("Company? ") { |q| q.default = "MySuperCompany" }
puts comp
require 'watir'
comp = ask("Company? ") { |q| q.default = "MySuperCompany" }
puts comp
Here is an output:
Company? |MySuperCompany|
MySuperCompany
[Company? ] =>
Company?
Maybe it's a bug?
I've also found in documentation for highline, that
If @question is set before ask() is
called, parameters are ignored and
that object (must be a
HighLine::Question) is used to drive
the process instead.
Sorry, I'm not a ruby guru :-(