IronRuby and RSpec


I’m having trouble running IronRuby with RSpec. I have a simple file
just to

The last require statement is loading the .NET assembly from my project,
it’s not actually used in this example.

require ‘rubygems’
require ‘spec’
require ‘mscorlib’
require File.expand_path(File.join(%w{… bin x86 Debug FlightShooter}),

describe ‘Test’ do
it “should do something” do
‘hello’.should == ‘hello’

The error I get is:

ir spec\test_spec.rb
IronRuby.Libraries:0:in ExpandPath': Invalid argument - test_spec.rb:0 (Errno::EINVAL) from :0:inexpand_path’
from example_group_methods.rb:103:in set_description' from example_group_methods.rb:166:insubclass’
from example_group_methods.rb:43:in describe' from example_group_factory.rb:25:increate_example_group’
from main.rb:24:in `describe’
from test_spec.rb:0

Any idea what could be going wrong?

Blog about college, programming, and other random things.
Follow me on Twitter:

I think this is an issue with the current build which presents RSpec
from working.

Take a look at my article on

I’ve created a build which should fix this bug - - well,
more of a hack to prove the concept works :slight_smile:

Let me know how you get on.


On Mon, Apr 27, 2009 at 3:27 PM, Brandon O.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs