I'm assuming you're on OSX from the Terminal reference, which would have
been a useful thing for you to mention.
The way you're running it, bash is going to try to execute your ruby script
as a bash script, I expect, rather than ruby. You have a couple of options:

Simplest is, you can run `ruby path/to/script.rb` and not have to change the
executable permission or anything else.

Or, you can add a #! statement to the beginning of the file, such as
#!/path/to/your/ruby
or, more generally useful:
#!/usr/bin/env ruby
see https://secure.wikimedia.org/wikipedia/en/wiki/Shebang_(Unix) for more
info on that.

On Thu, Nov 12, 2009 at 16:37, Shlomit Gazit <shlomitpatr...@gmail.com>wrote:

>
> In watir windows I can simply type in command line the name of the rb
> file and it will open IE and run watir test.
> How can I do it with firewatir? I was trying to do it from Terminal
> (with ./) but in the beginning it didnt do anything, then I changed
> permission to rb file to be executable, then it let me run the rb file
> but it complains about:
>
> $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') if $0 ==
> __FILE__
>
>
> Any idea?
>
>
> Shlomit.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to