Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Trying out minitest. Yeah, had that planned a few hours before @dhh s…

…tarted the testing framework flame on Twitter :)
  • Loading branch information...
commit afa86e04825ef672b92062abe9ff65e4b5b640ec 1 parent 06a252b
@txus authored
View
6 Gemfile.lock
@@ -18,6 +18,9 @@ GEM
launchy (0.3.7)
configuration (>= 0.0.5)
rake (>= 0.8.1)
+ minitest (2.0.2)
+ mynyml-redgreen (0.7.1)
+ term-ansicolor (>= 1.0.4)
open_gem (1.4.2)
launchy (~> 0.3.5)
parslet (1.2.0)
@@ -32,6 +35,7 @@ GEM
rspec-expectations (2.5.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.5.0)
+ term-ansicolor (1.0.5)
thor (0.14.6)
PLATFORMS
@@ -40,6 +44,8 @@ PLATFORMS
DEPENDENCIES
guard
guard-rspec
+ minitest
+ mynyml-redgreen
rb-fsevent
rspec (~> 2.5.0)
schemer!
View
9 Rakefile
@@ -5,4 +5,11 @@ require 'rspec/core/rake_task'
desc "Run the specs under spec"
RSpec::Core::RakeTask.new
-task :default => :spec
+require 'rake/testtask'
+Rake::TestTask.new do |t|
+ t.libs << "test"
+ t.test_files = FileList['test/**/*_test.rb']
+ t.verbose = true
+end
+
+task :default => :test
View
2  schemer.gemspec
@@ -17,6 +17,8 @@ Gem::Specification.new do |s|
s.add_runtime_dependency 'parslet', '~> 1.2.0'
s.add_development_dependency 'rspec', '~> 2.5.0'
+ s.add_development_dependency 'minitest'
+ s.add_development_dependency 'mynyml-redgreen'
s.add_development_dependency 'guard'
s.add_development_dependency 'guard-rspec'
s.add_development_dependency 'rb-fsevent'
View
9 test/hey_test.rb
@@ -0,0 +1,9 @@
+require 'test_helper'
+
+class MyTestCase < MiniTest::Unit::TestCase
+
+ def test_my_awesomeness
+ assert false
+ end
+
+end
View
9 test/other/hey_test.rb
@@ -0,0 +1,9 @@
+require 'test_helper'
+
+class OtheryTestCase < MiniTest::Unit::TestCase
+
+ def test_my_awesomeness
+ assert true
+ end
+
+end
View
4 test/test_helper.rb
@@ -0,0 +1,4 @@
+require 'minitest/unit'
+require 'minitest/autorun'
+require 'redgreen'
+require 'schemer'
Please sign in to comment.
Something went wrong with that request. Please try again.