Forum: IronRuby IronRuby and RSpec

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Brandon O. (Guest)
on 2009-04-27 18:36
(Received via mailing list)
Hi,

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

The last require statement is loading the .NET assembly from my project,
but
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}),
File.dirname(__FILE__))

describe 'Test' do
  it "should do something" do
    'hello'.should == 'hello'
  end
end

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:in `expand_path'
        from example_group_methods.rb:103:in `set_description'
        from example_group_methods.rb:166:in `subclass'
        from example_group_methods.rb:43:in `describe'
        from example_group_factory.rb:25:in `create_example_group'
        from main.rb:24:in `describe'
        from test_spec.rb:0

Any idea what could be going wrong?

Thanks,
Brandon

www.perpetualseeker.com
Blog about college, programming, and other random things.
Follow me on Twitter: http://twitter.com/devbanana
Ben H. (Guest)
on 2009-04-27 19:45
(Received via mailing list)
I think this is an issue with the current build which presents RSpec
from working.

Take a look at my article on
http://msdn.microsoft.com/en-us/magazine/dd434651.aspx

I've created a build which should fix this bug -
http://blog.benhall.me.uk/downloads/IronRuby/MSDNBuild.zip - well,
more of a hack to prove the concept works :)

Let me know how you get on.

Ben

On Mon, Apr 27, 2009 at 3:27 PM, Brandon O.
This topic is locked and can not be replied to.