Monday, 19 July 2010

Test ruby after installation

Sounds silly and obvious, But if we miss to run './rubytest' after installing ruby(any software, especially from source) we might land in big trouble. We might get the feeling that it got installed correctly but it may not. A random check in irb could show something like "123.12".to_f => 123123.0 Which is wrong, But ruby was installed fine.

I got the tests ran successfully later and "123.12".to_f gave me 123.12.