<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,7 +5,7 @@ class Regex
 
   def aceita? palavra
     letras = palavra.split(&quot;&quot;)
-    letras[0] == @regex or @regex.empty?
+    letras[0] == @regex or letras[1] == @regex or @regex.empty?
   end
 end
 </diff>
      <filename>81-Regex/lib/regex.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,36 +2,43 @@ require 'lib/regex'
 
 describe Regex do
   context &quot;vazia&quot; do
+    before :each do
+      @r = Regex.new(&quot;&quot;)
+    end
+
     it &quot;deve aceitar uma string vazia&quot; do
-      r = Regex.new(&quot;&quot;)
-      r.should be_aceita &quot;&quot;
+      @r.should be_aceita &quot;&quot;
     end
 
     it &quot;deve aceitar uma string 'ola'&quot; do
-      r = Regex.new(&quot;&quot;)
-      r.should be_aceita &quot;ola&quot;
+      @r.should be_aceita &quot;ola&quot;
     end
   end
 
-  context &quot;caracter&quot; do
+  context &quot;caracter a&quot; do
+    before :each do
+      @r = Regex.new(&quot;a&quot;)
+    end
 
-    it &quot;se a regex for 'a' deve aceitar uma string 'a'&quot; do
-      r = Regex.new(&quot;a&quot;)
-      r.should be_aceita &quot;a&quot;
+    it &quot;deve aceitar uma string 'a'&quot; do
+      @r.should be_aceita &quot;a&quot;
     end
-    it &quot;se a regex for 'a' n&#227;o deve aceitar uma string 'b'&quot; do
-      r = Regex.new(&quot;a&quot;)
-      r.should_not be_aceita &quot;b&quot;
+
+    it &quot;n&#227;o deve aceitar uma string 'b'&quot; do
+      @r.should_not be_aceita &quot;b&quot;
     end
-    it &quot;se a regex for 'a' n&#227;o deve aceitar uma string 'c'&quot; do
-      r = Regex.new(&quot;a&quot;)
-      r.should_not be_aceita &quot;c&quot;
+
+    it &quot;n&#227;o deve aceitar uma string 'c'&quot; do
+      @r.should_not be_aceita &quot;c&quot;
     end
-    it &quot;se a regex for 'a' deve aceitar uma string 'ab'&quot; do
-      r = Regex.new(&quot;a&quot;)
-      r.should be_aceita &quot;ab&quot;
+
+    it &quot;deve aceitar uma string 'ab'&quot; do
+      @r.should be_aceita &quot;ab&quot;
     end
 
+    it &quot;deve aceitar uma string 'ba'&quot; do
+      @r.should be_aceita &quot;ba&quot;
+    end
   end
 end
 </diff>
      <filename>81-Regex/spec/regex_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f0ad94af734ec96de45b7a802c276c292d3e0fc6</id>
    </parent>
  </parents>
  <author>
    <name>Thiago R. Colucci</name>
    <email>thiagorcolucci@agilbits.com.br</email>
  </author>
  <url>http://github.com/dojosp/participant-s-projects/commit/f48ce85f34baf699807a4794a1d8c33ed7a965e1</url>
  <id>f48ce85f34baf699807a4794a1d8c33ed7a965e1</id>
  <committed-date>2009-10-27T16:08:18-07:00</committed-date>
  <authored-date>2009-10-27T16:08:18-07:00</authored-date>
  <message>passando roubado para regex a aceitar palavra ba

Mari e Thiago (no anterior tb)</message>
  <tree>2e636a61538d7c37d65ea37a9adcc5c67f632143</tree>
  <committer>
    <name>Thiago R. Colucci</name>
    <email>thiagorcolucci@agilbits.com.br</email>
  </committer>
</commit>
