This is an example project demonstrating how to use RSpec and IronRuby to test .NET code.
The tests are located in Specs/examples. Take a look at Specs/rakefile to see examples of how to run the tests.
Hopefully I'll be writing a blog post soon that details some getting started steps.
- Install IronRuby
- Run "igem install rspec"
- Run "igem install rake"
Running the tests:
Now you can open cmd (or PowerShell) and cd into the Specs folder and type .\irake -T to see all the tasks. .\irake testenv is the one you should start with.
Running rake with Ruby:
You can also run rake with Ruby instead of IronRuby and it will shell out to IronRuby. Just make sure you have rake and rspec installed.