Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Convert to minitest/spec

  • Loading branch information...
commit 4cbb9ded91cf301ce2428ce3c1f5ac1d758bc7ba 1 parent d74e7b0
Rein Henrichs authored
View
22 Gemfile.lock
@@ -0,0 +1,22 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ git (1.2.5)
+ jeweler (1.5.2)
+ bundler (~> 1.0.0)
+ git (>= 1.2.5)
+ rake
+ minitest (2.0.2)
+ rake (0.8.7)
+ rcov (0.9.9)
+ yard (0.6.4)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ bundler (~> 1.0.0)
+ jeweler (~> 1.5.2)
+ minitest
+ rcov
+ yard (~> 0.6.0)
View
18 Rakefile
@@ -27,20 +27,20 @@ end
Jeweler::RubygemsDotOrgTasks.new
require 'rake/testtask'
-Rake::TestTask.new(:test) do |test|
- test.libs << 'lib' << 'test'
- test.pattern = 'test/**/test_*.rb'
- test.verbose = true
+Rake::TestTask.new(:spec) do |spec|
+ spec.libs << 'lib' << 'spec'
+ spec.pattern = 'spec/**/*_spec.rb'
+ spec.verbose = true
end
require 'rcov/rcovtask'
-Rcov::RcovTask.new do |test|
- test.libs << 'test'
- test.pattern = 'test/**/test_*.rb'
- test.verbose = true
+Rcov::RcovTask.new do |spec|
+ spec.libs << 'lib' << 'spec'
+ spec.pattern = 'spec/**/*_spec.rb'
+ spec.verbose = true
end
-task :default => :test
+task :default => :spec
require 'yard'
YARD::Rake::YardocTask.new
View
7 test/helper.rb → spec/helper.rb
@@ -7,13 +7,8 @@
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
-require 'minitest/unit'
+require 'minitest/autorun'
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'statsd'
-
-class MiniTest::Unit::TestCase
-end
-
-MiniTest::Unit.autorun
View
7 spec/statsd_spec.rb
@@ -0,0 +1,7 @@
+require 'helper'
+
+describe "foo" do
+ it "should fail" do
+ flunk
+ end
+end
View
7 test/test_statsd.rb
@@ -1,7 +0,0 @@
-require 'helper'
-
-class TestStatsd < MiniTest::Unit::TestCase
- def test_something_for_real
- flunk "hey buddy, you should probably rename this file and start testing for real"
- end
-end
Please sign in to comment.
Something went wrong with that request. Please try again.