[Ironruby-core] Spec Help!

Mohammad Azam lists at ruby-forum.com
Wed Jun 16 17:51:26 EDT 2010


Hi,

Do I have to install IronRuby in C:\IronRuby?

I have it installed somewhere else inside the C:\DevTools\IronRuby and
having trouble running spec.

When I do this:

igem install rspec

I get the following:

WARNING:  Installing to ~/.gem since C:/Program Files/IronRuby
1.0v4/lib/ironrub
y/gems/1.8 and
          C:/Program Files/IronRuby 1.0v4/bin aren't both writable.
WARNING:  You don't have C:/Users/azamsharp/.gem/ironruby/1.8/bin in
your PATH,
          gem executables will not run.
**************************************************

Here is my code:


require 'rubygems'
require 'spec'

require File.dirname(__FILE__) + '/bin/Debug/BusinessObjects.dll'

include BusinessObjects

describe Account do

before do

@account = Account.new

end

end

When I run the above code I get the following:


C:\Projects\IronRubyDemo\IronRubyDemoSolution\BusinessObjects>spec
testaccountsp
ec.rb --format nested
./bin/Debug/BusinessObjects.dll: 127: The specified procedure could not
be found
.   - Init_BusinessObjects (LoadError)
./bin/Debug/BusinessObjects.dll from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/cus
tom_require.rb:31:in `require'
        from ./testaccountspec.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

The error is weird since the "/bin/Debug/" directory does contain the
BusinessObjects.dll.
-- 
Posted via http://www.ruby-forum.com/.


More information about the Ironruby-core mailing list