February 2009
9 posts
Ruby Gems with Autotest Discovery Break Rails
We’ll start off by clarifying which versions of which software I’m currently running: rails 2.2.2 ZenTest 3.11.1 mbleigh-seed-fu 0.0.3 I’m developing a basic Ruby on Rails application. Using Test::Unit and Shoulda for the test suite. The issue that I kept running into (sadly, for nearly a couple of hours) was this: loading autotest/rails_rspec Autotest style...
Feb 20th
Functional test for 404s in Rails 2.x
The Ruby on Rails version 2.x ActionController::TestCase thankfully abstracts a lot of the setup of your functional tests. There is a hidden issue, however, a problem that lingers for fully testing your controllers. How do you test for those automatically generated FAIL pages (i.e. 404, 500, 403, etc.)? Hidden in the TestCase code, there is an answer. By default, all @request calls are made...
Feb 20th
“Linux is the expert mode of operating systems.”
– Nathaniel Bibler
Feb 18th
1 tag
Automated Phusion Passenger installation prior to...
The following snippet will run the Phusion Passenger installation script (passenger-install-apache2-module) in an automated fashion. This would allow you to install the software via a boot script: echo -en "\n\n\n\n" | passenger-install-apache2-module
Feb 18th
1 note
“Application Error Hoptoad has hopped the toad. The application has notified...”
– Hoptoadapp
Feb 16th
Feb 16th
1 tag
God Damn Tropicana...
Of course, my last entry is a rant on how horrible the box design is for Tropicana. Now, two days ago, my wife sent me to the grocery store (“uhh ohhh”) … and what’d I get ? Tropicana, No Pulp. Low Acid. Seriously? All the f’n boxes look the same. REALLY? ReaLLY? I swear I stared at that shelf for .. easily 2 minutes, if not longer … trying to...
Feb 16th
1 tag
Feb 3rd
1 tag
Feb 3rd