Archive | July, 2007

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 full story Comments { 0 }

Starting a software company

Well as of last month I decided to finally create a software company and see what I can turn it into. Starting out I will be focusing on consulting but will eventually try to turn it into a product based company. I will try to post about my progress on the blog here, mostly to [...]

Read full story Comments { 0 }
Chirk HR     Reuse your existing job applicants »