Skip to content

Instantly share code, notes, and snippets.

@lucacesari
Created September 14, 2014 10:30
Show Gist options
  • Save lucacesari/e65c649ea75fc86543a3 to your computer and use it in GitHub Desktop.
Save lucacesari/e65c649ea75fc86543a3 to your computer and use it in GitHub Desktop.
Fabulous testing with Rake and Minitest
# this file is located inside test/some_dir/
require 'test_helper'
class TestExample < MiniTest::Unit::TestCase
def test_version
refute_nil MYAPPLICATION::VERSION
end
end
require 'rake/testtask'
Rake::TestTask.new do |t|
t.libs << 'test'
t.pattern = "test/**/*_test.rb"
t.warning = true
t.verbose = true
end
# this file is located inside test/
require 'minitest/autorun'
require 'minitest/pride'
require 'my_application'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment