<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -4,7 +4,7 @@ module With
   def it_renders(render_method, *args, &amp;block)
     send(&quot;it_renders_#{render_method}&quot;, *args, &amp;block)
   end
-  
+
   def it_renders_blank(options = {})
     asserts_status options[:status]
     assert @response.body.strip.blank?
@@ -36,20 +36,21 @@ module With
   def it_assigns_example_values(name, value)
     case value
     when :not_nil
-      assert_not_nil assigns(name), 
+      assert_not_nil assigns(name),
         &quot;expected @#{name} not to be nil, but it is nil&quot;
     when :undefined
-      assert !@controller.send(:instance_variables).include?(&quot;@#{name}&quot;), 
+      assert !@controller.send(:instance_variables).include?(&quot;@#{name}&quot;),
         &quot;expected @#{name} not to be undefined, but it is defined&quot;
     when Symbol
       if (instance_variable = instance_variable_get(&quot;@#{value}&quot;)).nil?
-        assert_not_nil assigns(name), 
-          &quot;expected @#{name} not to be nil, but it is nil&quot;
+        assert_not_nil assigns(name), &quot;expected @#{name} not to be nil, but it is nil&quot;
       else
-        assert_equal instance_variable, assigns(name), 
+        assert_equal instance_variable, assigns(name),
           &quot;expected @#{instance_variable} to be equal to #{assigns(name).inspect}, but it is not&quot;
       end
-    when Proc  
+    when Class
+      assert value === assigns(name), &quot;expected #{assigns(name).inspect} to be an instance of #{value.inspect}&quot;
+    when Proc
       assert_equal instance_eval(&amp;value), assigns(name)
     else
       assert_equal value, assigns(name)
@@ -63,7 +64,7 @@ module With
           send(&quot;it_assigns_#{collection_type}_values&quot;, key, value)
         end
       end
-  
+
     protected
       define_method &quot;it_assigns_#{collection_type}_values&quot; do |key, value|
         key = key.send(collection_op) if collection_op
@@ -82,12 +83,12 @@ module With
         end
       end
   end
-  
+
   def it_redirects_to(path = nil, &amp;block)
     path ||= instance_eval(&amp;block)
     assert_redirected_to path
   end
-  
+
   protected
 
     def assert_content_type(type = :html)</diff>
      <filename>test/with-sugar/lib/with-sugar/controller.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2a4490ab6388f515d9b990d510e348d543e6adc6</id>
    </parent>
  </parents>
  <author>
    <name>Sven Fuchs</name>
    <email>svenfuchs@artweb-design.de</email>
  </author>
  <url>http://github.com/svenfuchs/adva_cms/commit/02e266e748bff5be40d057dbb47e4704375bcf78</url>
  <id>02e266e748bff5be40d057dbb47e4704375bcf78</id>
  <committed-date>2009-02-07T02:46:06-08:00</committed-date>
  <authored-date>2009-02-07T02:46:06-08:00</authored-date>
  <message>make with-sugar #it_assigns_example_values test for Classes</message>
  <tree>3d8bf6c137b3668e4d936a35c13c6a9fd293d038</tree>
  <committer>
    <name>Sven Fuchs</name>
    <email>svenfuchs@artweb-design.de</email>
  </committer>
</commit>
