<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -47,6 +47,12 @@ module Context
       cls = Class.new(self)
       cls.context_name = name
       # puts &quot;Creating context #{cls.context_name}&quot;
+      
+      # Care about Rails tests in nested contexts
+      cls.tests($1.constantize) if defined?(Rails) &amp;&amp; 
+        self.name =~ /^(.*(Controller|Helper|Mailer))Test/ &amp;&amp; 
+          self &lt; ActiveSupport::TestCase
+
       cls.class_eval(&amp;block)
       (self.context_list ||= []) &lt;&lt; cls
       const_set(&quot;Test#{name.to_class_name}#{cls.object_id.abs}&quot;, cls)</diff>
      <filename>lib/context/context.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@ class String
   # Replaces spaces and tabs with _ so we can use the string as a method name
   # Also replace dangerous punctuation
   def to_method_name
-    self.downcase.gsub(/[\s:',;!#=\(\)&amp;]+/,'_')
+    self.downcase.gsub(/[\s:',\.~;!#=\(\)&amp;]+/,'_')
   end
   
   # Borrowed from +camelize+ in ActiveSupport</diff>
      <filename>lib/context/core_ext/string.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f8a7c7ee8174682b9d7137b21169dbd3233c5063</id>
    </parent>
  </parents>
  <author>
    <name>Matthias Hennemeyer</name>
    <email>mhennemeyer@gmail.com</email>
  </author>
  <url>http://github.com/jeremymcanally/context/commit/bf5b1ea9be2b7685ef2958e341763b361dc7a6c8</url>
  <id>bf5b1ea9be2b7685ef2958e341763b361dc7a6c8</id>
  <committed-date>2009-02-10T23:24:13-08:00</committed-date>
  <authored-date>2009-02-08T06:37:41-08:00</authored-date>
  <message>Care about Rails tests in nested contexts.

Signed-off-by: Jeremy McAnally &lt;jeremymcanally@gmail.com&gt;</message>
  <tree>46b9773c0ce04899d3681bf31eed511d236d09ee</tree>
  <committer>
    <name>Jeremy McAnally</name>
    <email>jeremymcanally@gmail.com</email>
  </committer>
</commit>
