guard against calling prerequisites on nil #378

wants to merge 1 commit into


None yet
3 participants

jackdempsey commented May 21, 2011

Just generated a new test app with rails edge and rspec-rails 2.6 to debug some other stuff, and saw rake blowing up on me. Can't be 100% certain default task is now gone, but this small patch makes sure we don't try to call something on nil and blow everything up.

Tried to run rake to make sure all tests still pass, and ran into some issues:

git/rspec-rails handle_nil_default_task > thor gemfile:use 3.0.7
Using gemfiles/rails-3.0.7
bundle install --binstubs
Fetching source index for
Could not find gem 'rspec-expectations (~> 2.4.0)', required by 'rspec', in any of the sources

so just sending over anyway given the tiny change.

@dchelimsky dchelimsky closed this May 21, 2011


This comment has been minimized.

Show comment Hide comment

dukex May 22, 2011

Nice, this is fix my problems

dukex commented May 22, 2011

Nice, this is fix my problems

kaiwren pushed a commit to c42engineering/rspec-rails that referenced this pull request May 24, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment