[Ironruby-core] Cucumber with IronRuby

Mohammad Azam lists at ruby-forum.com
Mon Mar 1 11:35:26 EST 2010


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 <number>
When I pass the number to a IsPrime method
Then I should get <result> indication prime or not

Examples:

| number | result | 
| 1      | true   | 
| 2      | true   | 
| 4      | false   | 


I ran without the --no-color and still getting the same issue:


C:\Projects\ILoveIronRuby\ILoveIronRuby\IronRubyConsoleApp>icucumber 
features/pr
ime.feature
*** WARNING: You must "igem install iron-term-ansicolor" to get coloured 
ouput i
n on IronRuby
syntax error, unexpected IDENTIFIER, expecting '{', or DO, or '(' 
(SyntaxError)
:0:in `require'
C:/DevTools/ironruby-1.0-rc1/lib/ironruby/gems/1.8/gems/cucumber-0.6.2/bin/../li
b/cucumber/rb_support/rb_language.rb:124:in `load_code_file'
custom_require.rb:30:in `require'
C:/DevTools/ironruby-1.0-rc1/lib/ironruby/gems/1.8/gems/cucumber-0.6.2/bin/../li
b/cucumber/step_mother.rb:84:in `load_code_file'
polyglot.rb:64:in `require'
C:/DevTools/ironruby-1.0-rc1/lib/ironruby/gems/1.8/gems/cucumber-0.6.2/bin/../li
b/cucumber/step_mother.rb:76:in `load_code_files'
C:/DevTools/ironruby-1.0-rc1/lib/ironruby/gems/1.8/gems/cucumber-0.6.2/bin/../li
b/cucumber/step_mother.rb:75:in `load_code_files'
C:/DevTools/ironruby-1.0-rc1/lib/ironruby/gems/1.8/gems/cucumber-0.6.2/bin/../li
b/cucumber/cli/main.rb:51:in `execute!'
C:/DevTools/ironruby-1.0-rc1/lib/ironruby/gems/1.8/gems/cucumber-0.6.2/bin/../li
b/cucumber/cli/main.rb:20:in `execute'
:0:in `each'
C:/DevTools/ironruby-1.0-rc1/lib/ironruby/gems/1.8/gems/cucumber-0.6.2/bin/cucum
ber:8
c:/ruby/bin/cucumber:19
:0:in `load'

C:\Projects\ILoveIronRuby\ILoveIronRuby\IronRubyConsoleApp>
-- 
Posted via http://www.ruby-forum.com/.


More information about the Ironruby-core mailing list