Class: Ruby::RakeTest
- Inherits:
-
Object
- Object
- Ruby::RakeTest
- Defined in:
- lib/scripts/ruby/rake_test.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.description ⇒ Object
4 5 6 7 8 |
# File 'lib/scripts/ruby/rake_test.rb', line 4 def description <<-MARKDOWN Runs ruby tests by executing the `rake test` command. Uses bundler if bundler is installed. MARKDOWN end |
Instance Method Details
#run ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/scripts/ruby/rake_test.rb', line 11 def run if test_command?("bundler", "exec", "rake", "-V") return command("bundler", "exec", "rake", "test") end unless installed?("rake") command("gem", "install", "rake") end command("rake", "test") end |