<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>spec/WEB-INF/classes/com/xpto/fake.class</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,35 +1,35 @@
 class MockedServletContext
   include ServletContext
   attr_accessor :attributes, :init_parameters, :basic_path
-  
+
   def initialize
     @attributes = {}
   end
-  
+
   def get_init_parameter(x)
   end
-  
+
   def get_context(uri_path)
     nil
   end
-  
+
   def get_major_version
     0
   end
-  
+
   def get_minor_version
     0
   end
-  
+
   def get_mime_type(file)
     nil
   end
-  
+
   def get_resource_paths(path)
-    paths = HashSet.new  
+    paths = HashSet.new
     path = @basic_path = ($CLASSPATH.select {|p| p.include? &quot;/classes/&quot;})[0].sub(&quot;file:&quot;, &quot;&quot;) if path.eql? &quot;/WEB-INF/classes/&quot;
     Dir[path + &quot;*&quot;].each do |path|
-      path = path + &quot;/&quot; unless File::directory?(path)
+      path = path + &quot;/&quot; if File::directory?(path)
       path = path.gsub(@basic_path, &quot;/WEB-INF/classes/&quot;) if path.include? &quot;.class&quot;
       paths.add path
     end
@@ -38,15 +38,15 @@ class MockedServletContext
 
   def get_resource(x)
   end
-  
+
   def get_real_path(path)
     path
   end
-  
+
   def set_attribute(x, y)
     @attributes.merge!({x =&gt; y})
   end
-  
+
   def get_attribute(x)
     @attributes[x]
   end</diff>
      <filename>lib/spec/vraptor/mocked_servlet_context.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,7 +7,11 @@ describe MockedServletContext do
   end
 
   it &quot;should give me a path&quot; do
-    @context.get_resource(&quot;cwfwe&quot;)
+    lambda {@context.get_resource(&quot;cwfwe&quot;)}.should_not raise_error
+  end
+
+  it &quot;should return resources with a / if they are a directory&quot; do
+    @context.get_resource_paths(&quot;spec/WEB-INF/classes/com&quot;).to_array[0].should eql(&quot;spec/WEB-INF/classes/com/&quot;)
   end
 
 end</diff>
      <filename>spec/mocked_servlet_context_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9fb6a76440ce396998793b7170f04ec6293debbc</id>
    </parent>
  </parents>
  <author>
    <name>Diego Carrion</name>
    <email>dc.rec1@gmail.com</email>
  </author>
  <url>http://github.com/dcrec1/rspec-vraptor/commit/e3664799114cf5bce2a46a85225515da73c78eb3</url>
  <id>e3664799114cf5bce2a46a85225515da73c78eb3</id>
  <committed-date>2009-09-05T11:25:20-07:00</committed-date>
  <authored-date>2009-09-05T11:25:20-07:00</authored-date>
  <message>servet context returns resources that are a directory with a /</message>
  <tree>7567bf0214898471d67db777d40b7ca8c5905430</tree>
  <committer>
    <name>Diego Carrion</name>
    <email>dc.rec1@gmail.com</email>
  </committer>
</commit>
