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

Ivan Porto Carrero ivan at flanders.co.nz
Mon Jan 25 12:02:52 EST 2010


the command you want is ispec

or you're mixing the gems from your MRI install in which case I'd say don't
do that nastiness follows.


---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)



On Mon, Jan 25, 2010 at 5:56 PM, Mohammad Azam <lists at ruby-forum.com> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100125/0f85ec39/attachment-0001.html>


More information about the Ironruby-core mailing list