<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -60,7 +60,7 @@ module Spec
           expression = string_or_regexp.source
         end
         while expression =~ PARAM_PATTERN
-          expression.gsub!($2, &quot;(.*?)&quot;)
+          expression.sub!($2, &quot;(.*?)&quot;)
         end
         @expression = Regexp.new(&quot;\\A#{expression}\\Z&quot;, Regexp::MULTILINE)
       end</diff>
      <filename>lib/spec/story/step.rb</filename>
    </modified>
    <modified>
      <diff>@@ -32,6 +32,11 @@ module Spec
         step = Step.new(&quot;1 $one 2 $two 3 $three 4&quot;) {}
         step.matches?(&quot;1 a 2 b 3 c 4&quot;).should be_true
       end
+
+      it &quot;should match a text string with two params sharing a prefix&quot; do
+        step = Step.new(&quot;I am cool $n times out of $n_total&quot;)
+        step.matches?(&quot;I am cool 3 times out of 7&quot;).should be_true
+      end
       
       it &quot;should match a text string with a param at the beginning&quot; do
         step = Step.new(&quot;$one 2 3&quot;) {}</diff>
      <filename>spec/spec/story/step_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d84231200d1b09ed4d21c82487a6bf4cc29509f6</id>
    </parent>
  </parents>
  <author>
    <name>Pat Maddox</name>
    <email>pat.maddox@gmail.com</email>
  </author>
  <url>http://github.com/dchelimsky/rspec/commit/134c0f94e94f89938a941af5d74d9b303036fe08</url>
  <id>134c0f94e94f89938a941af5d74d9b303036fe08</id>
  <committed-date>2008-07-19T00:32:15-07:00</committed-date>
  <authored-date>2008-07-19T00:32:15-07:00</authored-date>
  <message>Steps match properly when containing two params sharing a prefix</message>
  <tree>be97dbb305b45ba4520506867d70622154461625</tree>
  <committer>
    <name>Pat Maddox</name>
    <email>pat.maddox@gmail.com</email>
  </committer>
</commit>
