Rake + MiniTest/Spec
I use minitest/spec as my testing style, including ending test files with _spec.
It's easy enough setting up Rake to run your specs correctly, just put this in your Rakefile:
# Rakefile
require 'rake/testtask'
Rake::TestTask.new do |t|
t.pattern = "spec/*_spec.rb"
end
Bonus
Set the testing task as the default one for extra key-savingnessness:
# Rakefile
task :default => [:test]
See also
Written by Ricardo Mendes
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#