tjstankus


Member since 07/08/2006

4 snippets

158 profile views

0 Comment(s) Posted

View their favorites

their Tags


Profile

Achievement

first submission:submitting first snipplet

tjstankus's Recent Snippets



« Prev 1 Next »
fixture_file_upload is another nifty Rails testing feature. It allows you to create "MIME-encoded content that would normally be uploaded by a browser input field." (Part in quotes straight from Agile Web Development with Rails, v2). Put your files t...
3 210 posted 13 years ago by tjstankus
The key here is display:none being in the style attribute of the affected div. It will not work if it's in a separate CSS file.
6 109 posted 14 years ago by tjstankus
A fairly DRY way to test for required attributes of a model. It's sort of an alternative to fixtures. It breaks the one-assertion-per-test rule that some people favor. Drop in your unit test and edit as necessary. A better (yet not quite perfect)...
3 102 posted 14 years ago by tjstankus
2 94 posted 14 years ago by tjstankus
« Prev 1 Next »