Permalink
Browse files

Add rake test task and fix path in tests

Test passed ok and should be run with `bundle exec rake test`
  • Loading branch information...
1 parent 6849e95 commit 843337d03e1aa885dfddc7e746c0b087695bc540 @shtirlic shtirlic committed Feb 29, 2012
Showing with 10 additions and 1 deletion.
  1. +8 −0 Rakefile
  2. +1 −0 sunzi.gemspec
  3. +1 −1 test/test_cli.rb
View
@@ -1 +1,9 @@
require "bundler/gem_tasks"
+require 'rake/testtask'
+
+
+Rake::TestTask.new do |t|
+ t.libs << "test"
+ t.test_files = FileList['test/test*.rb']
+ t.verbose = true
+ end
View
@@ -21,4 +21,5 @@ Gem::Specification.new do |s|
# s.add_development_dependency "rspec"
s.add_runtime_dependency "thor"
s.add_runtime_dependency "rainbow"
+ s.add_development_dependency "rake"
end
View
@@ -1,5 +1,5 @@
+require 'sunzi'
require 'test/unit'
-require '../lib/sunzi'
class TestCli < Test::Unit::TestCase
def setup

0 comments on commit 843337d

Please sign in to comment.