Re: [Ironruby-core] Cucumber with IronRuby V 1.0

2010-06-23 Thread Mohammad Azam
an *elevated* command prompt). Then just running >> “cucumber” will run against IronRuby. >> >> >> >> ~Jimmy >> >> >> >> *From:* [email protected] [mailto: >> [email protected]] *On Behalf Of *Eddie Cianci

Re: [Ironruby-core] Cucumber with IronRuby V 1.0

2010-06-23 Thread Mohammad Azam
[email protected] [mailto: > [email protected]] *On Behalf Of *Eddie Cianci > *Sent:* Wednesday, June 23, 2010 12:39 PM > *To:* [email protected] > *Subject:* Re: [Ironruby-core] Cucumber with IronRuby V 1.0 > > > > Hi Mohammad -- > > &g

Re: [Ironruby-core] Cucumber with IronRuby V 1.0

2010-06-23 Thread Will Green
” (from an *elevated* command prompt). Then just running “cucumber” > will run against IronRuby. > > > > ~Jimmy > > > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *Eddie Cianci > *Sent:* Wednesday, June 23, 2010

Re: [Ironruby-core] Cucumber with IronRuby V 1.0

2010-06-23 Thread Mohammad Azam
>> *From:* [email protected] [mailto: >> [email protected]] *On Behalf Of *Jimmy Schementi >> *Sent:* Wednesday, June 23, 2010 1:28 PM >> >> *To:* [email protected] >> *Subject:* Re: [Ironruby-core] Cucumber with I

Re: [Ironruby-core] Cucumber with IronRuby V 1.0

2010-06-23 Thread Mohammad Azam
byforge.org [mailto: > [email protected]] *On Behalf Of *Jimmy Schementi > *Sent:* Wednesday, June 23, 2010 1:28 PM > > *To:* [email protected] > *Subject:* Re: [Ironruby-core] Cucumber with IronRuby V 1.0 > > > > No, actually, he is using IronRub

Re: [Ironruby-core] Cucumber with IronRuby V 1.0

2010-06-23 Thread Jimmy Schementi
[email protected]] On Behalf Of Jimmy Schementi Sent: Wednesday, June 23, 2010 1:28 PM To: [email protected] Subject: Re: [Ironruby-core] Cucumber with IronRuby V 1.0 No, actually, he is using IronRuby, but setting the GEM_PATH to his Ruby implementation, which is those stack traces come

Re: [Ironruby-core] Cucumber with IronRuby V 1.0

2010-06-23 Thread Jimmy Schementi
“cucumber” will run against IronRuby. ~Jimmy From: [email protected] [mailto:[email protected]] On Behalf Of Eddie Cianci Sent: Wednesday, June 23, 2010 12:39 PM To: [email protected] Subject: Re: [Ironruby-core] Cucumber with IronRuby V 1.0 Hi Mohammad

Re: [Ironruby-core] Cucumber with IronRuby V 1.0

2010-06-23 Thread Mohammad Azam
That might be the thing!! What does that -S stands for and where is it documented? Do I still need to make the icucumber.bat I guess not? On Wed, Jun 23, 2010 at 2:39 PM, Eddie Cianci wrote: > Hi Mohammad -- > > That looks like your Ruby not IronRuby ... Try running: > > ir -S cucumber > > > >

Re: [Ironruby-core] Cucumber with IronRuby V 1.0

2010-06-23 Thread Eddie Cianci
Hi Mohammad -- That looks like your Ruby not IronRuby ... Try running: ir -S cucumber On Wed, Jun 23, 2010 at 3:27 PM, Mohammad Azam wrote: > I downloaded and install Cucumber 0.6.4. I deleted the Cucumber 0.8.3 > folder but now when I run the following command. > > c: cucumber > > I get the

Re: [Ironruby-core] Cucumber with IronRuby V 1.0

2010-06-23 Thread Mohammad Azam
I downloaded and install Cucumber 0.6.4. I deleted the Cucumber 0.8.3 folder but now when I run the following command. c: cucumber I get the following error: no such file to load -- c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.8.3/bin/cucumber On Wed, Jun 23, 2010 at 2:05 PM, Will Green wrote:

Re: [Ironruby-core] Cucumber with IronRuby V 1.0

2010-06-23 Thread Will Green
There is an issue with the Gherkin parser used by Cucumber. Downgrade to Cucumber 0.6.4, which does not use the Ragel-generated (native code) parser. It is slower, but it works. http://github.com/aslakhellesoy/gherkin/issues/issue/63 -- Will Green http://hotgazpacho.org/ On Wed, Jun 23, 2010 a

[Ironruby-core] Cucumber with IronRuby V 1.0

2010-06-23 Thread Mohammad Azam
What are the steps of running Cucumber with IronRuby? Do I need to make a separate batch file called ICucumber.bat and then invoke it. Here is my ICucumber.bat file: @ECHO OFF REM This is to tell IronRuby where to find gems. SET MONO_PATH=C:/IronRuby/lib/ironruby/gems/1.8/gems/gherkin-2.0.2-univer

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Jim Deville
[email protected] [mailto:[email protected]] On Behalf Of Mohammad Azam Sent: Monday, March 01, 2010 11:11 AM To: [email protected] Subject: Re: [Ironruby-core] Cucumber with IronRuby I cannot believe it that was the problem. I deleted the addition.rb file and it

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Jim Deville
It loads all of them by default -Original Message- From: [email protected] [mailto:[email protected]] On Behalf Of Mohammad Azam Sent: Monday, March 01, 2010 11:09 AM To: [email protected] Subject: Re: [Ironruby-core] Cucumber with IronRuby

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Mohammad Azam
I cannot believe it that was the problem. I deleted the addition.rb file and it started working. Lesson learned!! Cucumber will execute everything inside the step_definations. Jim Deville wrote: > Heh, that's why I said send it to me offline. Anyways, addition.rb is > pure ruby, you can't have

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Mohammad Azam
But I am trying to execute prime_steps.rb. Does it execute all of them by default or something?? Jim Deville wrote: > Heh, that's why I said send it to me offline. Anyways, addition.rb is > pure ruby, you can't have the last three lines of the file as is. > > JD -- Posted via http://www.ruby

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Jim Deville
nt: Monday, March 01, 2010 10:37 AM To: [email protected] Subject: Re: [Ironruby-core] Cucumber with IronRuby Seems like the forums file attach limit is less then 1.5 MB (Are we living in the 80's? :) Anyway, here is the url: http://www.highoncoding.com/articledownloads/IronRubyCons

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Mohammad Azam
Seems like the forums file attach limit is less then 1.5 MB (Are we living in the 80's? :) Anyway, here is the url: http://www.highoncoding.com/articledownloads/IronRubyConsoleApp.zip Jim Deville wrote: > Ok. We're missing something here. Let's take this offline. Email me > personally, with a

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Mohammad Azam
I got the following after running it using the -b option: C:\Projects\ILoveIronRuby\ILoveIronRuby\IronRubyConsoleApp>icucumber -b features /prime.feature *** WARNING: You must "igem install iron-term-ansicolor" to get coloured ouput i n on IronRuby syntax error, unexpected IDENTIFIER, expecting

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Ivan Porto Carrero
e- > From: [email protected] [mailto: > [email protected]] On Behalf Of Mohammad Azam > Sent: Monday, March 01, 2010 9:56 AM > To: [email protected] > Subject: Re: [Ironruby-core] Cucumber with IronRuby > > Here is the updated: > >

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Jim Deville
01, 2010 9:56 AM To: [email protected] Subject: Re: [Ironruby-core] Cucumber with IronRuby Here is the updated: @ECHO OFF REM This is to tell IronRuby where to find gems. SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8 C:\DevTools\ironruby-1.0-rc1\bin\ir.exe -d c:\ruby\bin\cucumber %* still

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Mohammad Azam
Here is the updated: @ECHO OFF REM This is to tell IronRuby where to find gems. SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8 C:\DevTools\ironruby-1.0-rc1\bin\ir.exe -d c:\ruby\bin\cucumber %* still giving the same error and took 20 seconds to execute icucumber command. Jim Deville wrote: > Get rid o

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Jim Deville
[email protected] [mailto:[email protected]] On Behalf Of Mohammad Azam Sent: Monday, March 01, 2010 9:36 AM To: [email protected] Subject: Re: [Ironruby-core] Cucumber with IronRuby Just modified the icucumber.bat to this: @ECHO OFF REM This is to tell IronRub

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Mohammad Azam
Just modified the icucumber.bat to this: @ECHO OFF REM This is to tell IronRuby where to find gems. SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8 @"C:\DevTools\ironruby-1.0-rc1\bin\ir.exe -d" "c:\ruby\bin \cucumber" %* Now ran the icucumber and got the following: C:\Projects\ILoveIronRuby\ILoveIronR

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Jim Deville
before. JD JD -Original Message- From: [email protected] [mailto:[email protected]] On Behalf Of Mohammad Azam Sent: Monday, March 01, 2010 9:20 AM To: [email protected] Subject: Re: [Ironruby-core] Cucumber with IronRuby When I type ir -d on

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Mohammad Azam
I can perform the update but I am afraid that it will break my previous code and I cannot take that risk right now. Is there anyway to solve the issue on RC1? Thanks, Azam Jim Deville wrote: > That's why rc2 was FIRST. -S is an option added in rc2. If you want to > support our project, we woul

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Mohammad Azam
When I type ir -d on the command prompt it takes me to the ironruby interactive console? -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list [email protected] http://rubyforge.org/mailman/listinfo/ironruby-core

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Jim Deville
: [email protected] Subject: Re: [Ironruby-core] Cucumber with IronRuby I installed the icucumber again using the following command: igem install cucumber the install went fine. then i said icucumber on the command prompt and I got the following: C:\Projects\ILoveIronRuby\ILoveIronRuby

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Jim Deville
yforge.org [mailto:[email protected]] On Behalf Of Mohammad Azam Sent: Monday, March 01, 2010 7:48 AM To: [email protected] Subject: Re: [Ironruby-core] Cucumber with IronRuby The ir-S gem install cucumber did not work: C:\Projects\ILoveIronRuby\ILoveIronRuby\IronRuby

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Mohammad Azam
Here is prime.feature: Feature: Prime Number Detection I need to find if a number is prime or not Scenario Outline: Prime Number Testing Given I have a When I pass the number to a IsPrime method Then I should get indication prime or not Examples: | number | result | | 1 | true | |

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Jim Deville
What does prime.feature look like then? -Original Message- From: [email protected] [mailto:[email protected]] On Behalf Of Mohammad Azam Sent: Monday, March 01, 2010 8:11 AM To: [email protected] Subject: Re: [Ironruby-core] Cucumber with

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Shay Friedman
Try to run icucumber with the --no-color switch. Shay Friedman | .NET Technologies Expert | Author of IronRuby Unleashed | Sela Technology Center Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay On Mon, Mar 1, 2010 at 5:56

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Mohammad Azam
My feature file is called prime.feature and now I added a new test file called "prime_steps" (I thought maybe the name has to be same). After running the icucumber features/prime.feature I still get the same error. The strange thing is that I don'nt have any code in the test file. It is totally bla

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Mohammad Azam
The ir-S gem install cucumber did not work: C:\Projects\ILoveIronRuby\ILoveIronRuby\IronRubyConsoleApp>ir -S gem install cuc umber ironterm-ansicolor Option `-S' not supported >> First of all upgrade to ironruby rc2. Maybe later! I am afraid it will going to mess things up for me. Ivan Porto

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Mohammad Azam
I installed the icucumber again using the following command: igem install cucumber the install went fine. then i said icucumber on the command prompt and I got the following: C:\Projects\ILoveIronRuby\ILoveIronRuby\IronRubyConsoleApp>icucumber *** WARNING: You must "igem install iron-term-ansi

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Mohammad Azam
Thanks for the reply! My test file called "primeservice.rb" is placed inside the step_definations folder which is inside the feature folder. Like this: features/step_definations/primeservice.rb The primeservice.rb looks something like this: require 'rubygems' require 'spec/expectations' requ

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Ivan Porto Carrero
First of all upgrade to ironruby rc2. Also I thought we had a very long discussion on mixing gems installed in a different ruby. Let's not repeat that one and keep it at don't mix gem installs. then try this: ir -S gem install cucumber ironterm-ansicolor ir -S cucumber features/prime.feature ---

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Jim Deville
e cucumber files. -Original Message- From: [email protected] [mailto:[email protected]] On Behalf Of Mohammad Azam Sent: Monday, March 01, 2010 7:09 AM To: [email protected] Subject: [Ironruby-core] Cucumber with IronRuby I don't know why

[Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Mohammad Azam
I don't know why I keep getting the following exception when I try to run cucumber with Ironruby. C:\Projects\ILoveIronRuby\ILoveIronRuby\IronRubyConsoleApp>icucumber features/pr ime.feature --no-color syntax error, unexpected IDENTIFIER, expecting '{', or DO, or '(' (SyntaxError) :0:in `require'