Hi Jimmy,
Yes, I am requiring RubyGems before 'Watir'

Here is the code:

require 'rubygems'
require 'spec'
require 'watir'

Thanks,
Azam

On Mon, Sep 21, 2009 at 1:18 PM, Jimmy Schementi <
[email protected]> wrote:

>   Are you requiring RubyGems first before trying to require Watir?
>
> require 'rubygems'
> require 'watir'
>
> If you don't, Ruby won't know to look for Gems when you use require.
>
> FYI, I haven't tested Watir with IronRuby yet. If you find any issues,
> please report then on http://ironruby.codeplex.com. But let the mailing
> list know what you find regardless.
>
>  ------------------------------
> *From:* [email protected] [
> [email protected]] on behalf of Mohammad Azam [
> [email protected]]
> *Sent:* Monday, September 21, 2009 11:02 AM
> *To:* [email protected]
> *Subject:* Re: [Ironruby-core] Manually Setting the Gems Path
>
>   I am trying to hook up Watir with IronRuby but since I cannot use the
> following
>
>  ir.exe igem install watir
>
>  I have downloaded Watir for Ruby (Not IronRuby). I have setup the path to
> the ruby libraries in the ir.exe.config file with "c:\ruby"
>
>  But still I am not able to run Watir. I get the exception
>
>  require no such file to load ----- watir
>
>
>
>
>
> On Mon, Sep 21, 2009 at 12:43 PM, Ryan Riley 
> <[email protected]>wrote:
>
>> Yes, dev.bat will inject the default environment variables for you. That's
>> not the root of the problem necessarily, but it should help get your gems in
>> the right place.
>>
>>
>> Ryan Riley
>> [email protected]
>> http://panesofglass.org/
>> http://wizardsofsmart.net/
>>
>>
>>   On Mon, Sep 21, 2009 at 12:39 PM, Mohammad Azam <[email protected]>wrote:
>>
>>> No!
>>>  Do I have to click on dev.bat in order to inject the environment
>>> variables?
>>>
>>>
>> _______________________________________________
>> Ironruby-core mailing list
>> [email protected]
>> http://rubyforge.org/mailman/listinfo/ironruby-core
>>
>>
>
>
> --
> Mohammad Azam
> MVP (Microsoft Valuable Professional)
> www.highoncoding.com
> www.azamsharp.com
>
> _______________________________________________
> Ironruby-core mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
>


-- 
Mohammad Azam
MVP (Microsoft Valuable Professional)
www.highoncoding.com
www.azamsharp.com
_______________________________________________
Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to