LittleStreamSoftware.com

As I wrote about in a prior post, I have been starting a software company. Now I have gotten it’s website to a stage where it is available to be published. Even though the website appears to be simple, it has some advanced technology behind it. Oh course it is a completely custom site using …

Read more

Testing exceptions in Rails

If you want to make sure an exception is thrown in a Rails test just use the assert_raise assertion. For example, I am testing to make sure the SQL statement is invalid after it goes through my model’s validation def test_exception c = Content.new # Title is missing assert_raise ActiveRecord::StatementInvalid do c.save end end This …

Read more