Hi,
A little "patch" for the new javascript_test plugin:
From
http://dev.rubyonrails.org/svn/rails/plugins/javascript_test/lib/javascript_test.rb
class IEBrowser < Browser
...
def setup
if windows?
puts %{
MAJOR ANNOYANCE on Windows.
You have to shut down the Internet Explorer manually after
each test
for the script to proceed.
Any suggestions on fixing this is GREATLY appreaciated!
Thank you for your understanding.
}
end
end
...
def visit(url)
system("#{@path} #{url}") if windows?
end
...
end
If we use the "start" command to detach the process from the system
call:
system(''start "" "#{@path}" #{url}'') if
windows?
This should fix the problem.
Guillaume
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---
Guillaume Benny
2006-Sep-21 02:24 UTC
Re: javascript_test: Internet Explorer annoyance patch
Guillaume Benny wrote:>... > > If we use the "start" command to detach the process from the system > call: > > system(''start "" "#{@path}" #{url}'') if windows? > > This should fix the problem. > > GuillaumeOups, wrong quote type. It should be: system(%{start "" "#{@path}" #{url}}) if windows? The first pair of quotes is needed or "start" will think you want to start a command prompt with a title... Guillaume --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs -~----------~----~----~----~------~----~------~--~---