<div class="gmail_quote">On Wed, May 14, 2008 at 2:24 PM, David Chelimsky &lt;<a href="mailto:dchelimsky@gmail.com">dchelimsky@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="Ih2E3d">On May 14, 2008, at 12:45 PM, Bryan Helmkamp wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If I have a step matcher defined as so:<br>
<br>
Given &quot;a user named $username&quot; do |username|<br>
....<br>
end<br>
<br>
Is there a way to call it from another step? For example:<br>
<br>
Given &quot;a user named $username with a blog post |username|<br>
&nbsp;given_a_user_named(username) # calls existing step code<br>
&nbsp;# create a blog post<br>
end<br>
</blockquote>
<br></div>
I&#39;m pretty sure you can do this:<div class="Ih2E3d"><br>
<br>
Given &quot;a user named $username with a blog post |username|<br></div><div class="Ih2E3d">
&nbsp;Given &quot;a user named #{username}&quot;<br></div><div class="Ih2E3d">
&nbsp;# create a blog post<br>
end<br></div></blockquote></div><div><br></div><div>Is this by intention or just a side effect of the current implementation?&nbsp;</div><br>-- <br>Zach Dennis<br><a href="http://www.continuousthinking.com">http://www.continuousthinking.com</a>