cucumber/cucumber-rails — pull request #253 by tooky (2013-08-27 15:27:30+00:00)
Title: `rake cucumber` fails on new rails 4 project with both rspec and cucumber

Just getting started on a new project – my first attempt with Rails 4 – and I've run into a minor snag. I've generated a demo project to show it off here: [mathie/broken_cucumber_demo](https://github.com/mathie/broken_cucumber_demo). Having installed and generated cucumber at mathie/broken_cucumber_demo@7474454, running `rake` or `rake cucumber` works fine.

However, after installing and generating rspec (in mathie/broken_cucumber_demo@c208712a149059c260bcdbe48ef204d0f42178e1), running `rake cucumber` results in:

```
/Users/mathie/.rbenv/versions/2.0.0-p247/bin/ruby -S bundle exec cucumber --profile default
DEPRECATION WARNING: ActionController::Integration is deprecated and will be removed, use ActionDispatch::Integration instead. (called from require at /Users/mathie/Development/Personal/broken_cucumber_demo/features/support/env.rb:7)
DEPRECATION WARNING: ActionController::IntegrationTest is deprecated and will be removed, use ActionDispatch::IntegrationTest instead. (called from require at /Users/mathie/Development/Personal/broken_cucumber_demo/features/support/env.rb:7)
Using the default profile...
0 scenarios
0 steps
0m0.000s
/Users/mathie/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1037:in `block in process_args': invalid option: --profile (OptionParser::InvalidOption)
from /Users/mathie/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1016:in `new'
from /Users/mathie/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1016:in `process_args'
from /Users/mathie/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1066:in `_run'
from /Users/mathie/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1059:in `run'
from /Users/mathie/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:795:in `block in autorun'
```

The backtrace suggests some autorun shenanigans, so I tried commenting out `require 'rspec/autorun'` from the spec helper, but that doesn't seem to have helped.

Any thoughts?