# IronRuby

**URL:** https://www.ruby-forum.com/c/ruby/ironruby/27.md?page=26

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 27

---

## [Spec and calling other examples](https://www.ruby-forum.com/t/spec-and-calling-other-examples/171707)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 1\
**Last updated:** [July 9, 2009, 3:56am UTC](https://www.ruby-forum.com/t/spec-and-calling-other-examples/171707 "2009-07-09T03:56:29Z")

</div>

Hi, When performing BDD there are few occasions when a certain example (BDD test) depends on other context/example. Here is one example: describe Person do before do @person = Person.new @person.Age = 19 end it…

---

## [RSpec Test Format](https://www.ruby-forum.com/t/rspec-test-format/171645)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 2\
**Last updated:** [July 7, 2009, 8:48pm UTC](https://www.ruby-forum.com/t/rspec-test-format/171645 "2009-07-07T20:48:14Z")

</div>

I have done BDD in C# and my question is that how Spec in IronRuby makes it easier. Here is what my test looks like: require ‘rubygems’ require ‘spec’ require File.dirname(FILE) + ‘/bin/Debug/BusinessObjects.dll’ in…

---

## [Assert\_throws Problem](https://www.ruby-forum.com/t/assert-throws-problem/171697)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 0\
**Last updated:** [July 7, 2009, 8:27pm UTC](https://www.ruby-forum.com/t/assert-throws-problem/171697 "2009-07-07T20:27:15Z")

</div>

Hi, I want to say that whatever exception is thrown just pass the test. class When\_a\_negative\_number\_is\_passed\_to\_the\_prime\_service \< TestCase def test\_should\_throw\_an\_exception primeService = PrimeService.new prime…

---

## [Viewing Abstract Syntax Trees](https://www.ruby-forum.com/t/viewing-abstract-syntax-trees/171648)

<div class="topic-metadata">

**Author:** [@Andrea\_oSkSW](https://www.ruby-forum.com/u/Andrea_oSkSW)\
**Replies:** 0\
**Last updated:** [July 7, 2009, 4:38am UTC](https://www.ruby-forum.com/t/viewing-abstract-syntax-trees/171648 "2009-07-07T04:38:07Z")

</div>

How can I view the AST that corresponds with a ruby file? I have read about -X:ShowASTs and -X:DumpASTs, but they don’t seem to be valid command line switches for IronRuby 0.6. Thank you very much, AOK

---

## [Formatting the test result in Spec](https://www.ruby-forum.com/t/formatting-the-test-result-in-spec/171637)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 5\
**Last updated:** [July 6, 2009, 11:10pm UTC](https://www.ruby-forum.com/t/formatting-the-test-result-in-spec/171637 "2009-07-06T23:10:49Z")

</div>

I got the Spec working in IronRuby! Thanks everyone. How can I get a detailed report (command line) when running the test? Currently, I only get the following: C:\\Projects\\FirstLookAtIronRuby\\FirstLookAtIronRuby\\TestS…

---

## [IronRuby 0.6 and Downloading RSpec Through Gem](https://www.ruby-forum.com/t/ironruby-0-6-and-downloading-rspec-through-gem/171634)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 3\
**Last updated:** [July 6, 2009, 9:45pm UTC](https://www.ruby-forum.com/t/ironruby-0-6-and-downloading-rspec-through-gem/171634 "2009-07-06T21:45:52Z")

</div>

I am trying to download RSpec but I keep getting the following error: gem install rspec unknown: parenthesize argument(s) for future version (Microsoft::Scripting::Synt axErrorException) igem install rspec …

---

## [Spec and Cucumber](https://www.ruby-forum.com/t/spec-and-cucumber/171625)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 2\
**Last updated:** [July 6, 2009, 8:26pm UTC](https://www.ruby-forum.com/t/spec-and-cucumber/171625 "2009-07-06T20:26:19Z")

</div>

Hi, How can I download and use spec and cucumber?

---

## [No tests were specified](https://www.ruby-forum.com/t/no-tests-were-specified/171621)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 2\
**Last updated:** [July 6, 2009, 6:58pm UTC](https://www.ruby-forum.com/t/no-tests-were-specified/171621 "2009-07-06T18:58:51Z")

</div>

not sure why I am getting the following error when running the tests: C:\\Projects\\FirstLookAtIronRuby\\FirstLookAtIronRuby\\TestSuite\>ir test\_customer.r b Loaded suite test\_customer Started F Finished in 0.3125 seco…

---

## [How to Refer to the Classes in my Custom DLL](https://www.ruby-forum.com/t/how-to-refer-to-the-classes-in-my-custom-dll/171620)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 1\
**Last updated:** [July 6, 2009, 6:33pm UTC](https://www.ruby-forum.com/t/how-to-refer-to-the-classes-in-my-custom-dll/171620 "2009-07-06T18:33:58Z")

</div>

Hi, I have a class library in C# called “BusinessObjects” and I want to refer to that DLL using IronRuby. I typed: require ‘BusinessObjects’ true include BusinessObjects include BusinessObjects C:\\ironruby\\iro…

---

## [Re: Basic interoperability question](https://www.ruby-forum.com/t/re-basic-interoperability-question/169726)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 2\
**Last updated:** [July 1, 2009, 10:09am UTC](https://www.ruby-forum.com/t/re-basic-interoperability-question/169726 "2009-07-01T10:09:07Z")

</div>

Require ‘mscorlib’ is not as essential anymore. If you run ir -e “puts System::String.class” it will wolrk just fine. I still use require ‘mscorlib’ in my scripts tlo signal to other programmers that this scrpt will u…

---

## [Code Review: HashFixes](https://www.ruby-forum.com/t/code-review-hashfixes/170879)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 2\
**Last updated:** [July 1, 2009, 9:09am UTC](https://www.ruby-forum.com/t/code-review-hashfixes/170879 "2009-07-01T09:09:22Z")

</div>

tfpt review “/shelveset:HashFixes;REDMOND\\tomat” Fixes implementation of hash methods in REXML and RubyGems. The current implementation is incorrect since it sums hash codes of subcomponents potentially overflowing to…

---

## [Declined: IronRuby Pair debugging](https://www.ruby-forum.com/t/declined-ironruby-pair-debugging/171338)

<div class="topic-metadata">

**Author:** [@jballanc](https://www.ruby-forum.com/u/jballanc)\
**Replies:** 0\
**Last updated:** [June 30, 2009, 8:26pm UTC](https://www.ruby-forum.com/t/declined-ironruby-pair-debugging/171338 "2009-06-30T20:26:46Z")

</div>

Hey Shri, I am OOF for the rest of the week starting tomorrow. Can we try again next Thr?

---

## [IronRuby Pair debugging](https://www.ruby-forum.com/t/ironruby-pair-debugging/171335)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 0\
**Last updated:** [June 30, 2009, 8:16pm UTC](https://www.ruby-forum.com/t/ironruby-pair-debugging/171335 "2009-06-30T20:16:13Z")

</div>

When: Thursday, July 02, 2009 8:30 AM-11:00 AM (GMT-08:00) Pacific Time (US & Canada). Where: LiveMeeting and MSN Messenger Note: The GMT offset above does not reflect daylight saving time adjustments. ~~~~~~~~~ Ra…

---

## [Silverlight 3 question](https://www.ruby-forum.com/t/silverlight-3-question/171163)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 5\
**Last updated:** [June 29, 2009, 10:30am UTC](https://www.ruby-forum.com/t/silverlight-3-question/171163 "2009-06-29T10:30:37Z")

</div>

Hi I have a hard time understanding why the following won’t work. I started with the following xaml: and in the initialize method of App I’ve got the following code @root = Application.current.load\_r…

---

## [WinForms in IronRuby](https://www.ruby-forum.com/t/winforms-in-ironruby/171130)

<div class="topic-metadata">

**Author:** [@shayfriedman](https://www.ruby-forum.com/u/shayfriedman)\
**Replies:** 2\
**Last updated:** [June 27, 2009, 12:34am UTC](https://www.ruby-forum.com/t/winforms-in-ironruby/171130 "2009-06-27T00:34:07Z")

</div>

Hi there, I’ve just published a blog post about an IR class I wrote to convert WinForms designer code to IronRuby. It is available at: http://blogs.microsoft.co.il/blogs/shayf/archive/2009/06/26/winforms-in-ironruby.…

---

## [Review: Misc ActiveRecord bug fixes](https://www.ruby-forum.com/t/review-misc-activerecord-bug-fixes/171141)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 0\
**Last updated:** [June 26, 2009, 11:28pm UTC](https://www.ruby-forum.com/t/review-misc-activerecord-bug-fixes/171141 "2009-06-26T23:28:37Z")

</div>

---

## [FYI Code Review: licensecheck](https://www.ruby-forum.com/t/fyi-code-review-licensecheck/171131)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [June 26, 2009, 8:32pm UTC](https://www.ruby-forum.com/t/fyi-code-review-licensecheck/171131 "2009-06-26T20:32:56Z")

</div>

FYI tfpt review “/shelveset:licensecheck;REDMOND\\jdeville” Comment : add license check add samples to release package add license headers where needed.

---

## [Silverlight B3 - Positioning an element within a Canvas](https://www.ruby-forum.com/t/silverlight-b3-positioning-an-element-within-a-canvas/165810)

<div class="topic-metadata">

**Author:** [@eoin](https://www.ruby-forum.com/u/eoin)\
**Replies:** 4\
**Last updated:** [June 26, 2009, 11:43am UTC](https://www.ruby-forum.com/t/silverlight-b3-positioning-an-element-within-a-canvas/165810 "2009-06-26T11:43:22Z")

</div>

Hi there, I have a very simple hello-world type IronRuby+Silverlight application based on the AGDLR samples. It consists of a Canvas containing a single Rectangle. I am attempting to position the Rectangle within the …

---

## [Code Review: FuncDelegates](https://www.ruby-forum.com/t/code-review-funcdelegates/171075)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [June 26, 2009, 1:08am UTC](https://www.ruby-forum.com/t/code-review-funcdelegates/171075 "2009-06-26T01:08:01Z")

</div>

tfpt review “/shelveset:FuncDelegates;REDMOND\\tomat” Replaces custom block delegates with Func delegates. Tomas

---

## [Ironruby.info updated](https://www.ruby-forum.com/t/ironruby-info-updated/171074)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [June 26, 2009, 1:03am UTC](https://www.ruby-forum.com/t/ironruby-info-updated/171074 "2009-06-26T01:03:55Z")

</div>

Sorry it’s been so long. But it’s up to date again. JD …there is no try

---

## [Code Review: bugfixes](https://www.ruby-forum.com/t/code-review-bugfixes/171053)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [June 25, 2009, 8:59pm UTC](https://www.ruby-forum.com/t/code-review-bugfixes/171053 "2009-06-25T20:59:58Z")

</div>

tfpt review “/shelveset:bugfixes;REDMOND\\jdeville” Comment : Regression tests to close Codeplex bugs: Access is allowed to internal fields from http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1521 File.e…

---

## [Review: Misc ActiveRecord bug fixes](https://www.ruby-forum.com/t/review-misc-activerecord-bug-fixes/171047)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 1\
**Last updated:** [June 25, 2009, 7:38pm UTC](https://www.ruby-forum.com/t/review-misc-activerecord-bug-fixes/171047 "2009-06-25T19:38:57Z")

</div>

---

## [Code Review: FileTest](https://www.ruby-forum.com/t/code-review-filetest/170994)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [June 25, 2009, 1:39am UTC](https://www.ruby-forum.com/t/code-review-filetest/170994 "2009-06-25T01:39:31Z")

</div>

tfpt review “/shelveset:FileTest;REDMOND\\tomat” Implements FileTest module. Tomas

---

## [Review: fixes for Array#rindex and Array#reverse\_each](https://www.ruby-forum.com/t/review-fixes-for-array-rindex-and-array-reverse-each/166327)

<div class="topic-metadata">

**Author:** [@murena](https://www.ruby-forum.com/u/murena)\
**Replies:** 8\
**Last updated:** [June 25, 2009, 1:30am UTC](https://www.ruby-forum.com/t/review-fixes-for-array-rindex-and-array-reverse-each/166327 "2009-06-25T01:30:10Z")

</div>

---

## [Code Review: HashIdPerf](https://www.ruby-forum.com/t/code-review-hashidperf/170990)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [June 24, 2009, 11:38pm UTC](https://www.ruby-forum.com/t/code-review-hashidperf/170990 "2009-06-24T23:38:22Z")

</div>

tfpt review “/shelveset:HashIdPerf;REDMOND\\tomat” Fixes hash code implementation for Range and Struct. Fixes Kernel#object\_id for large Fixnums. Misc perf improvements in strings and arrays. Tomas

---

## [Building IronPython from GitHub is busted](https://www.ruby-forum.com/t/building-ironpython-from-github-is-busted/170886)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 0\
**Last updated:** [June 24, 2009, 1:04am UTC](https://www.ruby-forum.com/t/building-ironpython-from-github-is-busted/170886 "2009-06-24T01:04:42Z")

</div>

Just in case you use the IronRuby GIT repo to get both IronRuby and IronPython sources, the msbuild build is currently broken because some projects are missing. Jim, can you take a look? “C:\\dev\\ironruby\\Merlin\\Main\\L…

---

## [Accessing Database Using IronRuby](https://www.ruby-forum.com/t/accessing-database-using-ironruby/170463)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 10\
**Last updated:** [June 24, 2009, 12:55am UTC](https://www.ruby-forum.com/t/accessing-database-using-ironruby/170463 "2009-06-24T00:55:55Z")

</div>

Hi, I am trying to find a way to access database (SQL SERVER) using IronRuby. One option is to use C# and ADO.NET classes to access the database but was wondering if IronRuby has a build in support for dynamic SQL so…

---

## [Question about Ivan Porto carrero MVC Sample](https://www.ruby-forum.com/t/question-about-ivan-porto-carrero-mvc-sample/170858)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 27\
**Last updated:** [June 23, 2009, 10:40pm UTC](https://www.ruby-forum.com/t/question-about-ivan-porto-carrero-mvc-sample/170858 "2009-06-23T22:40:36Z")

</div>

Hi Ivan Porto carrero, Great work on the MVC IronRuby sample! I am curious to know how it works! I created an ASP.NET MVC application. I created the controller and view but how will the views get called. Here is my c…

---

## [Code Review: Arrays](https://www.ruby-forum.com/t/code-review-arrays/170868)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [June 23, 2009, 8:11pm UTC](https://www.ruby-forum.com/t/code-review-arrays/170868 "2009-06-23T20:11:24Z")

</div>

tfpt review “/shelveset:Arrays;REDMOND\\tomat” Improves implementation of RubyArray. RubyArray now delegates to a list instead of deriving from it. It also implements IRubyObjectState and maintains version, tainted and…

---

## [Dynamic Binding fails if abstract event not implemented](https://www.ruby-forum.com/t/dynamic-binding-fails-if-abstract-event-not-implemented/170817)

<div class="topic-metadata">

**Author:** [@Xerxes\_Battiwalla](https://www.ruby-forum.com/u/Xerxes_Battiwalla)\
**Replies:** 6\
**Last updated:** [June 23, 2009, 5:19pm UTC](https://www.ruby-forum.com/t/dynamic-binding-fails-if-abstract-event-not-implemented/170817 "2009-06-23T17:19:07Z")

</div>

Hi - I’ve just downloaded the latest IR source from GitHub and have a problem with what looks like a regression from v0.4. We have an interface defining an event which is implemented by an abstract class in C#. In Rub…

[Previous page](https://www.ruby-forum.com/c/ruby/ironruby/27.md?page=25)

[Next page](https://www.ruby-forum.com/c/ruby/ironruby/27.md?page=27)
