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@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core