<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>lib/matchers/allow_attachment_content_type_for_matcher.rb</filename>
    </added>
    <added>
      <filename>spec/allow_attachment_content_type_for_matcher_spec.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -24,11 +24,11 @@ module Remarkable
             actuals = attachment_definition[:styles].clone
             match = @options[:styles].all? do |key, value|
               actual = actuals.delete(key)
-              actual == value || case actual
+              value == actual || value == case actual
               when Hash then actual[:geometry]
               when Array then actual[0]
               else actual
-              end == value
+              end
             end
             return (match &amp;&amp; actuals.size == 0),
                    :styles =&gt; @options[:styles].inspect, :actual =&gt; attachment_definition[:styles].inspect</diff>
      <filename>lib/matchers/have_attached_file_matcher.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@ require 'paperclip/extension'
 require 'matchers/have_attached_file_matcher'
 require 'matchers/validate_attachment_size_matcher'
 require 'matchers/validate_attachment_presence_matcher'
-require 'matchers/validate_attachment_content_type_matcher'
+require 'matchers/allow_attachment_content_type_for_matcher'
 
 if defined?(Spec::Rails)
   Remarkable.include_matchers!(Remarkable::Paperclip, Spec::Rails::Example::ModelExampleGroup)</diff>
      <filename>lib/remarkable_paperclip.rb</filename>
    </modified>
    <modified>
      <diff>@@ -31,13 +31,7 @@ en:
         description: &quot;validate attachment presence of attached file {{attribute}}&quot;
         expectations:
           invalid_when_not_present: &quot;{{subject_name}} to be invalid when attached file {{attribute}} is not present&quot;
-      validate_attachment_content_type:
-        description: &quot;validate attachment content type of attached file {{attribute}}&quot;
+      allow_attachment_content_type_for:
+        description: &quot;allow {{in}} as content type for attachment {{attribute}}&quot;
         expectations:
-          allows_match: &quot;{{subject_name}} to accept content types {{allows}} for attached file {{attribute}}&quot;
-          rejects_match: &quot;{{subject_name}} to reject content types {{rejects}} for attached file {{attribute}}&quot;
-        optionals:
-          allows:
-            positive: &quot;allowing {{inspect}}&quot;
-          rejects:
-            positive: &quot;rejecting {{inspect}}&quot;
\ No newline at end of file
+          is_valid: &quot;{{subject_name}} to be valid when content type for attachment {{attribute}} is set to {{value}}&quot;</diff>
      <filename>locale/en.yml</filename>
    </modified>
    <modified>
      <diff>@@ -1,11 +1,11 @@
 Gem::Specification.new do |s|
   s.name         = &quot;remarkable_paperclip&quot;
-  s.version      = &quot;0.6.2&quot;
+  s.version      = &quot;0.6.3&quot;
   s.author       = &quot;Lawrence Pit&quot;
   s.email        = &quot;lawrence.pit@gmail.com&quot;
   s.homepage     = &quot;http://github.com/lawrencepit/remarkable_paperclip&quot;
   s.summary      = &quot;Remarkable matchers for Paperclip.&quot;
-  s.files        = [&quot;README.markdown&quot;, &quot;MIT-LICENSE&quot;, &quot;locale/en.yml&quot;, &quot;lib/paperclip/extension.rb&quot;, &quot;lib/remarkable_paperclip.rb&quot;, &quot;lib/matchers/have_attached_file_matcher.rb&quot;, &quot;lib/matchers/validate_attachment_presence_matcher.rb&quot;, &quot;lib/matchers/validate_attachment_size_matcher.rb&quot;, &quot;lib/matchers/validate_attachment_content_type_matcher.rb&quot;]
+  s.files        = [&quot;README.markdown&quot;, &quot;MIT-LICENSE&quot;, &quot;locale/en.yml&quot;, &quot;lib/paperclip/extension.rb&quot;, &quot;lib/remarkable_paperclip.rb&quot;, &quot;lib/matchers/have_attached_file_matcher.rb&quot;, &quot;lib/matchers/validate_attachment_presence_matcher.rb&quot;, &quot;lib/matchers/validate_attachment_size_matcher.rb&quot;, &quot;lib/matchers/allow_attachment_content_type_for_matcher.rb&quot;]
   s.require_path = &quot;lib&quot;
   s.has_rdoc     = false
 end</diff>
      <filename>remarkable_paperclip.gemspec</filename>
    </modified>
    <modified>
      <diff>@@ -8,7 +8,6 @@ describe &quot;have_attached_file&quot; do
   describe &quot;messages&quot; do
     it &quot;should contain a description&quot; do
       @matcher = have_attached_file(:avatar)
-      @matcher.matches?(@subject)
       @matcher.description.should == 'have attached file :avatar'
     end
 
@@ -27,7 +26,7 @@ describe &quot;have_attached_file&quot; do
     it &quot;should set styles_match? message&quot; do
       @matcher = have_attached_file(:avatar, :styles =&gt; { :ico =&gt; &quot;16x16&quot; })
       @matcher.matches?(@subject)
-      @matcher.failure_message.should == 'Expected Person to have attached file :avatar with styles {:ico=&gt;&quot;16x16&quot;}, got {:ico=&gt;&quot;16x16&quot;, :normal=&gt;&quot;48x48&quot;}'
+      @matcher.failure_message.should =~ %r{Expected Person to have attached file :avatar with styles \{:ico=&gt;\&quot;16x16\&quot;\}, got \{:ico=&gt;.*, :normal=&gt;.*\}}
     end
 
     it &quot;should set default_style_match? message&quot; do</diff>
      <filename>spec/have_attached_file_matcher_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,7 +9,6 @@ describe &quot;validate_attachment_presence&quot; do
   describe &quot;messages&quot; do
     it &quot;should contain a description&quot; do
       @matcher = validate_attachment_presence(:avatar)
-      @matcher.matches?(@subject)
       @matcher.description.should == 'validate attachment presence of attached file :avatar'
     end
 </diff>
      <filename>spec/validate_attachment_presence_matcher_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,7 +9,6 @@ describe &quot;validate_attachment_size&quot; do
 
     it &quot;should contain a description when :in is used&quot; do
       @matcher = validate_attachment_size(:avatar, :in =&gt; 100..110)
-      @matcher.matches?(@subject)
       @matcher.description.should == 'validate size for attached file :avatar to be in 100..110'
     end
 </diff>
      <filename>spec/validate_attachment_size_matcher_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>lib/matchers/validate_attachment_content_type_matcher.rb</filename>
    </removed>
    <removed>
      <filename>spec/validate_attachment_content_type_matcher_spec.rb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>83b19366ed465c987a9c4bc63dd29a4ad0f29438</id>
    </parent>
  </parents>
  <author>
    <name>Lawrence Pit</name>
    <email>lawrence.pit@gmail.com</email>
  </author>
  <url>http://github.com/lawrencepit/remarkable_paperclip/commit/7606f2b48b5b3872d3a20d66a04b1b0435e83da2</url>
  <id>7606f2b48b5b3872d3a20d66a04b1b0435e83da2</id>
  <committed-date>2009-05-30T00:00:30-07:00</committed-date>
  <authored-date>2009-05-30T00:00:30-07:00</authored-date>
  <message>Refactored ValidateAttachmentContentTypeMatcher to AllowAttachmentContentTypeForMatcher.</message>
  <tree>77c001b8e6b0a85d33e17debceee7af10571ade7</tree>
  <committer>
    <name>Lawrence Pit</name>
    <email>lawrence.pit@gmail.com</email>
  </committer>
</commit>
