title: Is there a way to check which cucumber scenario called a certain step?
body: <p>I have two scenarios in two different feature files but both scenarios tests search functions but on different parts of my page.
  The scenarios I have looks something like this:</p>
  
  <pre><code>Scenario Outline: Search items from QuickSearch
  Given that the following items
    | id | title       | 
    | 1  | Item1       | 
    | 2  | Item2       |
  When I search for &lt;criteria&gt; in this search
  Then I should get &lt;result&gt;
  And I should not get &lt;excluded&gt;
  
  Examples:
  |criteria|result    | excluded  |
  | 1      | 1        | 2         |
  | 2      | 2        | 1         |
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>Scenario Outline: Using a filter
  Given that I have the following things:
   |id |name     |
   |1  | thing1  |
   |2  | thing2  |
  When I use the &lt;filter&gt; filled with &lt;criteria&gt;
  Then I should obtain these &lt;results&gt;
  And I should not obtain these &lt;exclusions&gt;
  
  Examples:
  |filter     |criteria   |results    |exclusions |
  |name       |thing      |1,2        |           |
  |id         |1          |1          |2          |
  </code></pre>
  
  <p>As you can tell in the second scenario I have changed the word get to obtain in order to write separate steps for the two scenarios.
  The only reason I need two different steps is because the id in the 2 different scenarios map to different names (no I cant use the same for both and don't want to start on id 3 in the second)</p>
  
  <p>So I'm thinking about common steps for both of the scenarios (at least when it comes to the then steps) and I want a hash mapping id and name together in order to do validation, but I want the hash to be different depending on which scenario called the step.</p>
  
  <p>So, is there a way in cucumber + capybara that I can tell which scenario called a step?</p>