<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -9,7 +9,7 @@ Dir[File.dirname(__FILE__) + &quot;/helpers/*_helper.rb&quot;].uniq.each { |file| require
 class MerbStory
   include Merb::Test::Rspec::ControllerMatchers
   # TODO: update boxy steps to use merb's markup matchers
-  #include Merb::Test::Rspec::MarkupMatchers
+  include Merb::Test::Rspec::MarkupMatchers
   include BoxyStories
   
   def url(name, params={})</diff>
      <filename>stories/helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -25,32 +25,39 @@ steps_for(:boxy) do
   end_of_boxy_step = &quot;&quot;
   
   Then &quot;#{start_of_boxy_step}$child within $parent&quot; do |child, parent|
-    child_elements = tag_filter_and_attributes(child)
-    parent_elements = tag_filter_and_attributes(parent)
+    child_tag, unused, child_attributes = tag_filter_and_attributes(child)
+    parent_tag, unused, parent_attributes = tag_filter_and_attributes(parent)
     
-    @response.body.should have_tag(*parent_elements[0..2]).with_tag(*child_elements[0..2])
+    @response.body.should have_tag(parent_tag, parent_attributes).with_tag(child_tag, child_attributes)
   end
   
   Then &quot;#{start_of_boxy_step}$parent with $attribute&quot; do |parent, attribute|
     tag, filter, attributes = tag_filter_and_attributes(parent)
     unused, unused, extra_attribute = tag_filter_and_attributes(attribute)
     attributes.merge(extra_attribute)
-    
-    @response.body.should have_tag(tag, filter, attributes)
+        
+    case filter
+    when String then @response.body.should have_tag(tag, attributes) {|ele| ele.should contain(filter)}
+    when Regexp then @response.body.should have_tag(tag, attributes) {|ele| ele.should match(filter)}
+    else             @response.body.should have_tag(tag, attributes)
+    end
   end
   
   Then &quot;#{start_of_boxy_step}$parent containing $filter&quot; do |parent, filter|
     tag, unused, attributes = tag_filter_and_attributes(parent)
     unused, filter, unused = tag_filter_and_attributes(filter)
-    
-    @response.body.should have_tag(tag, filter, attributes)
+        
+    case filter
+    when String then @response.body.should have_tag(tag, attributes) {|ele| ele.should contain(filter)}
+    when Regexp then @response.body.should have_tag(tag, attributes) {|ele| ele.should match(filter)}
+    end
   end
   
   #example:
   #Then they should see a hentry box
   Then &quot;#{start_of_boxy_step}$parent#{end_of_boxy_step}&quot; do |parent|
-    tag, filter, attributes = tag_filter_and_attributes(parent)
+    tag, unused, attributes = tag_filter_and_attributes(parent)
     
-    @response.body.should have_tag(tag, filter, attributes)
+    @response.body.should have_tag(tag, attributes)
   end
 end
\ No newline at end of file</diff>
      <filename>stories/steps/boxy_steps.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>stories/helpers/has_tag_helper.rb</filename>
    </removed>
    <removed>
      <filename>stories/helpers/has_tag_spec.rb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>184107f2625068fa9cf0f8ee711baf4d2d920ef3</id>
    </parent>
  </parents>
  <author>
    <name>Ben Burkert</name>
    <email>ben@benburkert.com</email>
  </author>
  <url>http://github.com/hornbeck/blerb-core/commit/a97a544144cc4f98d1fae0564cc15c19cd8d5ed5</url>
  <id>a97a544144cc4f98d1fae0564cc15c19cd8d5ed5</id>
  <committed-date>2008-02-15T07:31:14-08:00</committed-date>
  <authored-date>2008-02-15T07:31:14-08:00</authored-date>
  <message>Story tests now use the MarkupMatchers from merb_rspec.</message>
  <tree>d37dce638b83ff31b89218e15a3e4e6274136565</tree>
  <committer>
    <name>Ben Burkert</name>
    <email>ben@benburkert.com</email>
  </committer>
</commit>
