<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,2 @@
-require File.join(File.dirname(__FILE__), 'lib', 'what')
-
+require 'what'
 </diff>
      <filename>init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1 +0,0 @@
-# Install hook code here</diff>
      <filename>install.rb</filename>
    </modified>
    <modified>
      <diff>@@ -10,9 +10,14 @@ class WhatTest &lt; Test::Unit::TestCase
     Mime::Type.register 'image/png', :png
   end
 
-  Mime::SET.each do |each|
-    define_method &quot;test_should_say_its_a_#{each.to_sym}_mime_type_when_sent_#{each.to_sym}?&quot; do
-      assert each.send(&quot;#{each.to_sym}?&quot;)
+  Mime::SET.each do |mime_type|
+    define_method &quot;test_should_say_its_a_#{mime_type.to_sym}_mime_type_when_sent_#{mime_type.to_sym}?&quot; do
+      assert mime_type.send(&quot;#{mime_type.to_sym}?&quot;)
+    end
+
+    other_mime_type = Mime::SET.detect {|each| each != mime_type}
+    define_method &quot;test_should_not_say_its_a_#{other_mime_type.to_sym}_mime_type_if_its_not_one_when_sent_#{other_mime_type.to_sym}?&quot; do
+      assert ! mime_type.send(&quot;#{other_mime_type.to_sym}?&quot;)
     end
   end
 </diff>
      <filename>test/what_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1 +0,0 @@
-# Uninstall hook code here</diff>
      <filename>uninstall.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e269f3d5aa80c7ccf00f06ac6b1119fa64862e56</id>
    </parent>
  </parents>
  <author>
    <name>jcarroll</name>
    <email>jcarroll@7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa</email>
  </author>
  <url>http://github.com/thoughtbot/what/commit/d111e93cfb115999985c63f2a5a95299f87542c9</url>
  <id>d111e93cfb115999985c63f2a5a95299f87542c9</id>
  <committed-date>2008-02-22T12:07:16-08:00</committed-date>
  <authored-date>2008-02-22T12:07:16-08:00</authored-date>
  <message>added tests for the negative conditions

git-svn-id: https://svn.thoughtbot.com/plugins/what@363 7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa</message>
  <tree>c8547b158254d7d192aaa4caa29b9dd0e9f16c9a</tree>
  <committer>
    <name>jcarroll</name>
    <email>jcarroll@7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa</email>
  </committer>
</commit>
