Help !! - undefined method `failed?' for Ant using Cuke4duke

8 views
Skip to first unread message

Siddharthaa Nayak

unread,
Jan 29, 2010, 3:42:29 AM1/29/10
to Cukes
Hi,

I am new to cucumber and am facing the following issue. Can someone
help me out, please?
The issue was reported as issue id 472 and was supposed to be resolved
but, I am not sure whats wrong.

I am using Ant and have tried the cuke4duke version jars 0.1.5, 0.1.6
and 0.2.3. and jruby jar 1.4.0 and 1.3.1.
The build.xml for ant has been tried with gems:
1. <install-gem gem="cucumber" version="0.3.104" source="http://
gems.rubyforge.org/" />
2. <install-gem gem="cuke4duke" version="0.2.3" source="http://
gems.rubyforge.org/" />
3. <install-gem gem="rspec" version="1.3.0" />
4. <install-gem gem="rspec" version="1.2.8" />

Only unique gems were installed at any given execution.

When I use the gems 1 and 4, on using Scenario outline and Examples I
get the following error:
[WARNING] undefined method `failed?' for nil:NilClass (NoMethodError)
Without the Examples, the execution is just fine.

In the build.xml file I have <java classname="org.jruby.Main"
fork="true" failonerror="true"> with some arguments which when
executed give the following error:
[java] no constructor with arguments matching [class
org.jruby.RubyObject, class org.jruby.RubyObject, class
org.jruby.RubyArray] on object
#<Java::Cuke4dukeInternalJvmclass::ClassLanguage:0xbc6007> (NameError)

Can someone please help me understand what is wrong in both the
scenarios?

aslak hellesoy

unread,
Jan 29, 2010, 4:39:37 AM1/29/10
to cukes

Only use cuke4duke 0.2.3, cucumber 0.6.2 and rspec 1.3.0. Don't use
the previous versions.
Have you tried to follow these instructions?
http://wiki.github.com/aslakhellesoy/cuke4duke/ant
The wiki page has a link to a project that has a sample build.xml file.

Aslak

> --
> You received this message because you are subscribed to the Google Groups "Cukes" group.
> To post to this group, send email to cu...@googlegroups.com.
> To unsubscribe from this group, send email to cukes+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages