[Ironruby-core] test .net code with ruby BDD libraries

Ivan Porto Carrero ivan at flanders.co.nz
Sun Feb 8 12:49:57 EST 2009


Hi Claudio

try this:

require 'rubygems'
require 'bacon'




On Sun, Feb 8, 2009 at 6:22 PM, Claudio Maccari
<claudio.maccari at gmail.com>wrote:

>  Hi Jimmy,
>
>
>
> I would try bacon cause it looks simple but I can't get it working.
>
> I installed bacon using gem and now is located in
> C:\ruby\lib\ruby\gems\1.8\gems\bacon-1.1.0
>
> I edited my ir.exe.config file as follow
>
>
>
> <options>
>
>       <set language="Ruby" option="LibraryPaths"
> value="c:\ruby\lib\ruby\site_ruby\1.8\;c:\ruby\lib\ruby\site_ruby\;c:\ruby\lib\ruby\1.8\;c:\ruby\lib\ruby\gems\1.8\gems\"
> />
>
>     </options>
>
>
>
> But I get this error
>
>
>
> C:\Projects\IronRuby>ir.exe
>
> IronRuby 1.0.0.0 on .NET 2.0.50727.3053
>
> Copyright (c) Microsoft Corporation. All rights reserved.
>
>
>
> >>> require 'bacon'
>
> IronRuby.Libraries:0:in `require': no such file to load -- bacon
> (LoadError)
>
>         from :0
>
>
>
> >>>
>
>
>
> What's  wrong ?
>
> Thanks
>
> Claudio
>
>
>
> *From:* ironruby-core-bounces at rubyforge.org [mailto:
> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Jimmy Schementi
> *Sent:* sabato 7 febbraio 2009 21.14
>
> *To:* ironruby-core at rubyforge.org
> *Subject:* Re: [Ironruby-core] test .net code with ruby BDD libraries
>
>
>
> I've using bacon (http://github.com/chneukirchen/bacon) to test C#
> Silverlight code, and it works great on the desktop as well. It's definitely
> the smallest of the bdd libraries, and feels fastest, but I've got no data
> to support that (yet).
>
>
>
>
> http://blog.jimmy.schementi.com/2009/01/dynamic-language-testing-in-silverlight.html
>
>
>
> However, don't expect any mocking libraries to work. You can't mock C#
> types, and have those changes be visible to other C# code. We need to write
> a ruby wrapper around existing C# mocking libraries, so let me know if
> anyone is interested in doing so.
>
>
>
> ~js
>
>
>   ------------------------------
>
> *From:* ironruby-core-bounces at rubyforge.org [
> ironruby-core-bounces at rubyforge.org] On Behalf Of Thibaut Barrère [
> thibaut.barrere at gmail.com]
> *Sent:* Saturday, February 07, 2009 10:10 AM
> *To:* ironruby-core at rubyforge.org
> *Subject:* Re: [Ironruby-core] test .net code with ruby BDD libraries
>
> Hi,
>
>  Has someone already try to test .net code with ruby DBB library?
>
> If the answer is yes, is there somewhere a sample/post/article of this
> work?
>
>  Did not use RSpec yet (as it was reported to be slow), but MSpec (BDD)
> and Test::Unit (can be BDD too) did the trick.
>
>
>
> Check out this for a few hints and thoughts:
> http://blog.logeek.fr/2008/12/1/thoughts-on-ironruby-and-dotnet-testing
>
>
>
> cheers,
>
>
>
> -- Thibaut
>
>
>
> Many thanks in advance
>
> Claudio
>
>
>
>
>
> Claudio Maccari
>
> http://testdrivendevelopment.wordpress.com/
>
>
>
> "I have the simplest taste. I am always satisfied with the best"- Oscar
> Wilde
>
>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core at rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
>
>
> _______________________________________________
> 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/20090208/5e79f648/attachment.html>


More information about the Ironruby-core mailing list