samhuri.net/posts/2006/02/textmate-snippets-for-rails-assertions.md
Sami Samhuri 007b1058b6
Migrate from Swift to Ruby (#33)
Replace the Swift site generator with a Ruby and Phlex implementation.
Loads site and projects from TOML, derive site metadata from posts.

Migrate from make to bake and add standardrb and code coverage tasks.

Update CI and docs to match the new workflow, and remove unused
assets/dependencies plus obsolete tooling.
2026-02-07 21:19:03 -08:00

1.2 KiB

Title Author Date Timestamp Tags
TextMate Snippets for Rails Assertions Sami Samhuri 20th February, 2006 2006-02-20T23:52:00-08:00 textmate, rails, coding, rails, snippets, testing, textmate

This time I've got a few snippets for assertions. Using these to type up your tests quickly, and then hitting ⌘R to run the tests without leaving TextMate, makes testing your Rails app that much more convenient. Just when you thought it was already too easy! (Don't forget that you can use ⌥⌘↓ to move between your code and the corresponding test case.)

This time I'm posting the .plist files to make it easier for you to add them to TextMate. All you need to do is copy these to ~/Library/Application Support/TextMate/Bundles/Rails.tmbundle/Snippets.

Assertion Snippets for Rails

If anyone would rather I list them all here I can do that as well. Just leave a comment.

(I wanted to include a droplet in the zip file that will copy the snippets to the right place, but my 3-hour attempt at writing the AppleScript to do so left me feeling quite bitter. Maybe I was just mistaken in thinking it would be easy to pick up AppleScript.)