MrDys / blacklight

Blacklight Plugin
http://projectblacklight.org/
Other
1 stars 1 forks source link

blacklight:all_tests rake tasks should not appear when rspec/cucumber are not installed #515

Closed MrDys closed 12 years ago

MrDys commented 12 years ago

CODEBASE-330: The blacklight:spec and blacklight:cucumber tests are not displayed in rake -T when their gems are not available. The same should be done for the blacklight:all_tests rake tasks.

MrDys commented 12 years ago

Original reporter: cbeer

MrDys commented 12 years ago

jrochkind: http://bit.ly/if4rJ7

all_tests when cucumber/rspec not avail, fail cleanly. CODEBASE-330

Follow cucumber_rails and rspec_rails pattern. Require cucumber/rspec. Catch LoadError when they aren't available. In rescue, define a placeholder task that just tells you you need to install cucumber and rspec to get blacklight:all_tests.

Again following lead of rspec-rails/cucumber-rails, although we define two tasks here, blacklight:all_tests and blacklight:all_tests:rcov, we only define one failure mode dummy placeholder, the 'main' one, blacklight:all_tests