title: Cucumber not finding step definitions
body: <p>My Cucumber just won't find the step definitions. The file structure (Only the specs folder inside the Rails root) looks like this:</p>
  
  <pre><code>-&gt; specs
     -&gt; features
        -&gt; main_structure.feature
        -&gt; step_definitions
           -&gt; main_structure_steps.rb
  </code></pre>
  
  <p>This is the main_structure.feature:</p>
  
  <pre><code>Feature: Main structure
    Scenario: Viewing the Structure page
      When I am on the structure page
  </code></pre>
  
  <p>And this the main_structure_steps.rb:</p>
  
  <pre><code>When(/^I am on the structure page$/) do
    visit '/'
  end
  </code></pre>
  
  <p>Now I run the cucumber command like this:</p>
  
  <pre><code>→ cucumber spec/features -r features 
  </code></pre>
  
  <p>I get this output:</p>
  
  <pre><code>Using the default profile...
  Feature: Main structure
  
    Scenario: Viewing the Structure page # spec/features/main_structure.feature:2
      When I am on the structure page    # spec/features/main_structure.feature:3
        Undefined step: "I am on the structure page" (Cucumber::Undefined)
        spec/features/main_structure.feature:3:in `When I am on the structure page'
  
  1 scenario (1 undefined)
  1 step (1 undefined)
  0m0.229s
  
  You can implement step definitions for undefined steps with these snippets:
  
  When(/^I am on the structure page$/) do
    pending # express the regexp above with the code you wish you had
  end
  
  /Users/rudolf/.rvm/gems/ruby-2.0.0-p247@global/gems/minitest-4.7.5/lib/minitest/unit.rb:1037:in `block in process_args': invalid option: -r (OptionParser::InvalidOption)
      from /Users/rudolf/.rvm/gems/ruby-2.0.0-p247@global/gems/minitest-4.7.5/lib/minitest/unit.rb:1016:in `new'
      from /Users/rudolf/.rvm/gems/ruby-2.0.0-p247@global/gems/minitest-4.7.5/lib/minitest/unit.rb:1016:in `process_args'
      from /Users/rudolf/.rvm/gems/ruby-2.0.0-p247@global/gems/minitest-4.7.5/lib/minitest/unit.rb:1066:in `_run'
      from /Users/rudolf/.rvm/gems/ruby-2.0.0-p247@global/gems/minitest-4.7.5/lib/minitest/unit.rb:1059:in `run'
      from /Users/rudolf/.rvm/gems/ruby-2.0.0-p247@global/gems/minitest-4.7.5/lib/minitest/unit.rb:795:in `block in autorun'
  </code></pre>
  
  <p>There is also an error message at the bottom, that doesn't appear when I run the test in RubyMine. But in both cases, the step definitions are not found. This is the Rubymine output:</p>
  
  <pre><code>Testing started at 21:29 ...
  
  
  You can implement step definitions for undefined steps with these snippets:
  
  When(/^I am on the structure page$/) do
    pending # express the regexp above with the code you wish you had
  end
  1 scenario (1 undefined)
  1 step (1 undefined)
  0m0.001s
  
  Process finished with exit code 0
  </code></pre>
  
  <p>Tell me if you need any additional infos.</p>