<div>Do all of these scenarios exist in the same story?</div><div>Should they be dried up?</div>Would Clarity over Cleverness apply here?<br><br><div class="gmail_quote">On Jan 23, 2008 4:45 PM, Neil M. Young <<a href="mailto:ermok@tiscali.co.uk">
ermok@tiscali.co.uk</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>I'm finding that I'm writing sets of very similar scenarios to check access
<br>permissions for each of my actions. Does anyone have suggestions on how to<br>dry this up:<br><br>Given an existing Account<br>And a logged in Admin<br>When the user visits account/manage<br>Then he should get access<br>
<br>Given an existing Account<br>And a logged in Manager<br>When the user visits account/manage<br>Then he should get access<br><br>Given an existing Account<br>And a logged in Supervisor<br>When the user visits account/manage
<br>Then he should not get access<br><br>Given an existing Account<br>And a logged in Reviewer<br>When the user visits account/manage<br>Then he should not get access<br><br>Given an existing Account<br>And a logged in User
<br>When the user visits account/manage<br>Then he should not get access<br><font color="#888888"><br>--<br>View this message in context: <a href="http://www.nabble.com/DRYing-up-stories-tp15053384p15053384.html" target="_blank">
http://www.nabble.com/DRYing-up-stories-tp15053384p15053384.html</a><br>Sent from the rspec-users mailing list archive at <a href="http://Nabble.com" target="_blank">Nabble.com</a>.<br><br>_______________________________________________
<br>rspec-users mailing list<br><a href="mailto:rspec-users@rubyforge.org">rspec-users@rubyforge.org</a><br><a href="http://rubyforge.org/mailman/listinfo/rspec-users" target="_blank">http://rubyforge.org/mailman/listinfo/rspec-users
</a><br></font></blockquote></div><br>