Add layout checking to test_spec_on_rails

test_spec_on_rails is a plugin that adds Rails-specific assertions to test_spec, allowing you to do nifty things like this: it “should render with foo template” do get :some_action template.should.be “foo” # equivalent to assert_equal “foo”, @response.template end it “should display foo on page” do get :some_action page.should.select “p”, “foo” # equivalent … Continue reading

Overriding existing Rake tasks

I added some long-running integration tests to a Rails application today and quickly began getting irritated that issuing the rake command runs all tests… unit, functional, AND integration. Since I run rake quite frequently, any sizable delay can quickly get annoying. The task that gets executed by rake is the … Continue reading