labria’s ruby blog

random ruby/rails stuff

Archive for the ‘Rails’ tag

Weird RSpec practice.

leave a comment

I recently found myself doing a wierd thing. While writing specs i add this spec to the end of the file:

it "should fail" do
  raise "foo"
end

The reason to do it? Simple: every time i have all the specs passing in the current file, autospec begins running all the specs in my project, breaking my red-green cycle for about 30 seconds. Adding a failing spec prevents it from doing it, and speeds up my work.

Am I doing something wrong?

Written by labria

June 25th, 2009 at 3:06 am

Posted in Uncategorized

Tagged with ,

At last!

leave a comment

They made it!
Phusion has released passenger with nginx support.
No more bloated apache installs, hooray!
I've been waiting for this since the day passenger was first released.
UPD: well, it has some issues as of now, but I'm sure it's all gonna be fixed soon enough!

Written by labria

April 17th, 2009 at 3:08 am

Posted in Uncategorized

Tagged with ,