diff options
Diffstat (limited to 'rake_tasks/test.rake')
-rw-r--r-- | rake_tasks/test.rake | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/rake_tasks/test.rake b/rake_tasks/test.rake index 203bbf6..1140062 100644 --- a/rake_tasks/test.rake +++ b/rake_tasks/test.rake @@ -52,10 +52,16 @@ namespace :test do desc 'test the CodeRay executable' task :exe do - ruby './test/executable/suite.rb' + if RUBY_VERSION >= '1.8.7' + ruby './test/executable/suite.rb' + else + puts + puts "Can't run executable tests because shoulda-context requires Ruby 1.8.7+." + puts "Skipping." + end end end -task :test => %w( test:functional test:exe test:units ) +task :test => %w(test:functional test:units test:exe) task :samples => 'test:samples'
\ No newline at end of file |