# [Ironruby-core] IronRuby and Cucumber - undefined method bin_path' for

Merrell Reed lists at ruby-forum.com
Thu May 14 12:29:54 EDT 2009

I just copied the the bin_path code from
C:\path\to\ruby\lib\ruby\site_ruby\1.8\rubygems.rb to
\path\to\ironruby\libraries\lib\ruby\site_ruby\1.8\rubygems.rb  and it
works fine with cucumber but I am now getting some new errors with a
frozen object being called.

I have also fixed the problem with expand_path I removed Path and used a
stack and parsed the path myself but I am a contributing noob and not
sure really how to add this.

But I was able to get rspec running with my .net code. I made a bat that
calls spec (in ruby folder) mycode.rb using ironruby

Matt Otto wrote:
> Hello,
>
> I'm running into the following issue trying to run cucumber with the
> latest iron ruby source from git:
> c:/ruby/bin/cucumber:19: undefined method bin_path' for Gem:Module
> (NoMethodError)
>
> This occurs when running either icucumber --help or the i18n cucumber
> sample. I've not tried any of the other examples.
>
> Yesterday morning I was able to get the scenarios in the i18n examples
> to partially execute until they failed with
> "Unable to cast from Func to BlockCallTargetN" and :0:in concat':
> can't modify frozen object (TypeError)". exceptions, but after
> updating this morning I'm only seeing the undefined method exception.
>
> I'm currently sharing gems between MRI and Iron Ruby if that matters,
> and am using the instructions found here for cucumber:
> http://wiki.github.com/aslakhellesoy/cucumber/ironruby-and-net
>
> Does anyone have any ideas? Or should I file a bug for this on
`