Rails ships with Test::Unit as the default testing framework. Test::Unit is a fine choice, and demonstrates the concepts of testing in Rails quite well. Despite that, RSpec is quite popular among Ruby developers. An annual survey conducted by Hampton Catlin shows that, of the developers polled, 69.4% prefer RSpec for testing.
|||describe "a simple test" do|
|||it "should test something" do|
|||expect(number).to eq(10) ...|