<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Wed, 10 Jun 2026 03:22:55 +0000</lastBuildDate>
    <item>
      <title>(Ruby) fixture_file_upload Example - tjstankus</title>
      <link>https://snipplr.com/view/1716/fixturefileupload-example</link>
      <description>&lt;p&gt;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 to test in test/fixtures/files. You have to create the 'files' directory; rails doesn't do it for you.&lt;/p&gt;</description>
      <pubDate>Sun, 26 Nov 2006 03:24:28 UTC</pubDate>
      <guid>https://snipplr.com/view/1716/fixturefileupload-example</guid>
    </item>
    <item>
      <title>(Ruby) Simple Blind Up-Down - tjstankus</title>
      <link>https://snipplr.com/view/596/simple-blind-updown</link>
      <description>&lt;p&gt;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.&lt;/p&gt;</description>
      <pubDate>Thu, 27 Jul 2006 22:04:59 UTC</pubDate>
      <guid>https://snipplr.com/view/596/simple-blind-updown</guid>
    </item>
    <item>
      <title>(Ruby) Test for required attributes - tjstankus</title>
      <link>https://snipplr.com/view/291/test-for-required-attributes</link>
      <description>&lt;p&gt;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.&#13;
&#13;
A better (yet not quite perfect) approach:&#13;
http://johnwilger.com/articles/2005/12/07/a-bit-of-dryness-for-unit-tests-in-rails&lt;/p&gt;</description>
      <pubDate>Sat, 08 Jul 2006 20:17:13 UTC</pubDate>
      <guid>https://snipplr.com/view/291/test-for-required-attributes</guid>
    </item>
    <item>
      <title>(Ruby) Create with merge options - tjstankus</title>
      <link>https://snipplr.com/view/290/create-with-merge-options</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sat, 08 Jul 2006 18:47:26 UTC</pubDate>
      <guid>https://snipplr.com/view/290/create-with-merge-options</guid>
    </item>
  </channel>
</rss>
