Help me about Test-Unit in Ruby on Rails

I’m using RubyMine for developing RoR and i found in RubyMine have Test
file.But I read in rubyforge http://test-unit.rubyforge.org/ have
Test-Unit for RoR.Could you help me about 2 problem:

haxuan lac wrote in post #1101341:

I’m using RubyMine for developing RoR and i found in RubyMine have Test
file.But I read in rubyforge http://test-unit.rubyforge.org/ have
Test-Unit for RoR.Could you help me about 2 problem:

If you’re planning to do xUnit style testing then I would recommend
using Ruby 1.9’s build-in test framework called MiniTest:

http://www.bootspring.com/2010/09/22/minitest-rubys-test-framework/

You can even opt for RSpec style BDD testing as described (pun intended)
toward the end of the above blog.

Alternatively you may also choose the excellent, and very popular, RSpec
for comprehensive BDD style testing:

https://github.com/rspec/rspec-rails

Thank Robert W. for answer me
I’m want to do with TDD style(http://www.agiledata.org/essays/tdd.html)
Could you give me some advise.Thanks…

On 16 March 2013 02:12, haxuan lac [email protected] wrote:

Thank Robert W. for answer me
I’m want to do with TDD style(http://www.agiledata.org/essays/tdd.html)
Could you give me some advise.Thanks…

Start by working through the tutorial railstutorial.org (which is free
to use online). That gives a good introduction to testing.

Colin

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs