[Ironruby-core] Did Something Changed Again in Spec...

Jim Deville jdeville at microsoft.com
Mon Jan 25 12:04:04 EST 2010


Igem install spec never worked. It's always been igem install rspec. And before you complain about the confusion, that is the RSpec project's (rspec.info) choice, not ours.

It also looks like when you run spec, you are running the Ruby version, not the IronRuby version. 

JD

-----Original Message-----
From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mohammad Azam
Sent: Monday, January 25, 2010 8:56 AM
To: ironruby-core at rubyforge.org
Subject: [Ironruby-core] Did Something Changed Again in Spec...

I am trying to unit test my .NET CLR assembly using IronRuby spec framework. First, the following command does not work anymore

igem install spec

Now, I have to type the following:

igem install rspec

Anyway, when I run the following script:


require 'rubygems'
require 'spec'

require File.dirname(__FILE__) + '/bin/Debug/EStudy.Domain.Model.dll'

include EStudy.Domain.Model.Model

user = User.new

describe User, "when user is created" do

  it "should not be null" do

    user.should == null

  end

  end

I get the following error:


C:\Projects\EStudyVS2008\EStudySoltution\EStudy\ConsoleApplication2>spec
test_us
er.rb --format nested
./bin/Debug/EStudy.Domain.Model.dll: 127: The specified procedure could not be f
ound.   - Init_EStudy (LoadError)
./bin/Debug/EStudy.Domain.Model.dll     from
c:/ruby/lib/ruby/site_ruby/1.8/ruby
gems/custom_require.rb:31:in `require'
        from ./test_user.rb:5
        from
c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/example_
group_runner.rb:15:in `load'
        from
c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/example_
group_runner.rb:15:in `load_files'
        from
c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/example_
group_runner.rb:14:in `each'
        from
c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/example_
group_runner.rb:14:in `load_files'
        from
c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/options.
rb:133:in `run_examples'
        from
c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/command_
line.rb:9:in `run'
        from c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/bin/spec:5
        from c:/ruby/bin/spec:19:in `load'
        from c:/ruby/bin/spec:19

Any ideas! I am using the exactly the same code I used before. Before I used it on IronRuby 0.9 version and now I am using IronRuby RC.
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ironruby-core mailing list
Ironruby-core at rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core



More information about the Ironruby-core mailing list