[Ironruby-core] Testing with IronRuby Query

Ivan Porto Carrero ivan at flanders.co.nz
Wed Dec 23 13:58:35 EST 2009


when you do require 'MyAssembly.dll'

ironruby looks in it's search paths to see if it can find the file in one of
those locations. If it exists it will just load the file with
Assembly.LoadFromPath

Not much magic

You may have to change the trust level in your .net security configuration
to allow network locations but that counts for other .NET stuff too.
---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
Blog: http://flanders.co.nz
Google Wave: portocarrero.ivan at googlewave.com
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)



On Wed, Dec 23, 2009 at 6:59 PM, Gordon Marsh <lists at ruby-forum.com> wrote:

> Hi,
>
> I have just got IronRuby up and running. I'm intending on using it with
> Cucumber to test some of the DLLs on our server.
>
> It all seems to have been set up correctly and I have require'd one of
> the DLLs from a location on our server. I have access to the DLL's via a
> shared drive, but they are on a different machine to my own. The DLLs
> sit on the webserver in the bin directory within the wwwroot directory
> of an IIS server. The class interfaces are quite simple, but the DLLs do
> a lot of work calling other services, databases etc.
>
> Now, on my machine, where my test scripts are, if I import one of these
> DLLs using
>
>  require 'mydll.dll'
>
> What does this actually do?
>
>  1) Does it make a copy of the DLL code which I can use but is running
> on my machine? Or;
>  2) Does it reference the DLL on the webserver itself such that I am
> running code on the webserver?
>
> I ask as to test the DLLs effectively they will need to have the same
> resources available to them as on the webserver (access to the DB etc).
> If the code is running on my machine, then I can't test effectively.
>
> Any advice appreciated....
>
> Thanks,
>
> Gordon
> --
> 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/20091223/52dc7d71/attachment-0001.html>


More information about the Ironruby-core mailing list