Commit 84f4cf2

mo khan <mo@mokhan.ca>
2014-04-26 18:46:10
add minitest and travis.
1 parent e0f6c09
bin/mathy
@@ -0,0 +1,3 @@
+#!/usr/bin/env ruby
+
+require 'mathy'
test/minitest_helper.rb
@@ -0,0 +1,4 @@
+$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
+require 'mathy'
+
+require 'minitest/autorun'
test/test_mathy.rb
@@ -0,0 +1,11 @@
+require 'minitest_helper'
+
+class TestMathy < MiniTest::Unit::TestCase
+  def test_that_it_has_a_version_number
+    refute_nil ::Mathy::VERSION
+  end
+
+  def test_it_does_something_useful
+    assert false
+  end
+end
mathy/.gitignore → .gitignore
File renamed without changes
.travis.yml
@@ -0,0 +1,3 @@
+language: ruby
+rvm:
+  - 2.1.1
mathy.gemspec
@@ -20,4 +20,5 @@ Gem::Specification.new do |spec|
 
   spec.add_development_dependency "bundler", "~> 1.6"
   spec.add_development_dependency "rake"
+  spec.add_development_dependency "minitest"
 end
Rakefile
@@ -1,2 +1,9 @@
 require "bundler/gem_tasks"
+require "rake/testtask"
+
+Rake::TestTask.new(:test) do |t|
+  t.libs << "test"
+end
+
+task :default => :test