<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
I'm hardly a story-runner expert, so I may be making a dumb mistake here... I'm trying to get one scenario to run another as part of its Given clause. It looks like this:<div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Scenario: Admin user merges two venues</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>GivenScenario Admin user views two venues</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>When I go to "/admin/venues"</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Then I should see "Venue1"</div><div><br></div><div>Obviously the When / Then bits will get more complicated once I get this working.</div><div><br></div><div>In another .feature file, I have the following scenario (which passes)</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Scenario: Admin user views two venues</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Given the default city exists</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>...<br></div><div><br></div><div>The scenario "Admin user merges two venues" fails with this ugly backtrace:</div><div><br></div><div><div>/Users/matt/Documents/projects/songkick/skweb/vendor/plugins/cucumber/lib/cucumber/tree/scenario.rb:45:in `given_scenario_steps': You have a nil object when you didn't expect it! (NoMethodError)</div><div>The error occurred while evaluating nil.steps   from /Users/matt/Documents/projects/songkick/skweb/vendor/plugins/cucumber/lib/cucumber/tree/given_scenario.rb:9:in `steps'</div><div>        from /Users/matt/Documents/projects/songkick/skweb/vendor/plugins/cucumber/lib/cucumber/tree/scenario.rb:41:in `steps'</div><div>        from /Users/matt/Documents/projects/songkick/skweb/vendor/plugins/cucumber/lib/cucumber/tree/scenario.rb:41:in `map'</div><div>        from /Users/matt/Documents/projects/songkick/skweb/vendor/plugins/cucumber/lib/cucumber/tree/scenario.rb:41:in `steps'</div><div>        from /Users/matt/Documents/projects/songkick/skweb/vendor/plugins/cucumber/lib/cucumber/tree/scenario.rb:9:in `accept'</div><div>        from /Users/matt/Documents/projects/songkick/skweb/vendor/plugins/cucumber/lib/cucumber/executor.rb:62:in `visit_scenario'</div><div>        from /Users/matt/Documents/projects/songkick/skweb/vendor/plugins/cucumber/lib/cucumber/executor.rb:53:in `visit_regular_scenario'</div><div>        from /Users/matt/Documents/projects/songkick/skweb/vendor/plugins/cucumber/lib/cucumber/tree/feature.rb:47:in `accept'</div><div>         ... 6 levels...</div><div>        from /Users/matt/Documents/projects/songkick/skweb/vendor/plugins/cucumber/lib/cucumber/executor.rb:36:in `visit_features'</div><div>        from /Users/matt/Documents/projects/songkick/skweb/vendor/plugins/cucumber/lib/cucumber/cli.rb:84:in `execute!'</div><div>        from /Users/matt/Documents/projects/songkick/skweb/vendor/plugins/cucumber/lib/cucumber/cli.rb:11:in `execute'</div><div>        from /Users/matt/Documents/projects/songkick/skweb/vendor/plugins/cucumber/bin/cucumber:3</div><div>rake aborted!</div><div>Command failed with status (1): [/usr/local/bin/ruby -I "/Users/matt/Docume...]</div><div><br></div><div><br></div><div>What am I doing wrong?</div></div><div><br></div></div><div><br></div><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div><div>cheers,</div><div>Matt</div><div>----</div><div><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; "><a href="http://blog.mattwynne.net">http://blog.mattwynne.net</a><br></span></font></div><div><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; "><a href="http://songkick.com">http://songkick.com</a></span></font></div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font style="font: normal normal normal 16px/normal Helvetica; "><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; ">In case you wondered: The opinions expressed in this email are my own and do not necessarily reflect the views of any former, current or future employers of mine.</span></font></font></div></div></div></span></span></span></span></span></span></div></div></body></html>