summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo k <m@mokhan.ca>2011-11-11 20:14:56 -0700
committermo k <m@mokhan.ca>2011-11-11 20:14:56 -0700
commit50bfdb46921374cefe0f49fc01b62ad04e1284ab (patch)
treeb3f02ea1c049b3330f15c313bcb8c119c3eec5b6
parentd44be018966cc153ff5501ff3fbd065f6c91b2ad (diff)
move to lib and test folder and add rakefile.
-rw-r--r--lib/book.rb (renamed from book.rb)0
-rw-r--r--lib/stack.rb (renamed from stack.rb)0
-rw-r--r--rakefile3
-rw-r--r--test/book_specs.rb (renamed from book_specs.rb)2
-rw-r--r--test/library_specs.rb (renamed from library_specs.rb)2
-rw-r--r--test/stack_specs.rb (renamed from stack_specs.rb)2
-rw-r--r--test/ts_all.rb5
7 files changed, 11 insertions, 3 deletions
diff --git a/book.rb b/lib/book.rb
index 56f9c5a..56f9c5a 100644
--- a/book.rb
+++ b/lib/book.rb
diff --git a/stack.rb b/lib/stack.rb
index a2b8c04..a2b8c04 100644
--- a/stack.rb
+++ b/lib/stack.rb
diff --git a/rakefile b/rakefile
new file mode 100644
index 0000000..81322ae
--- /dev/null
+++ b/rakefile
@@ -0,0 +1,3 @@
+task :test do
+ sh "ruby -I lib:test test/ts_all.rb"
+end
diff --git a/book_specs.rb b/test/book_specs.rb
index 256f559..2dbdd31 100644
--- a/book_specs.rb
+++ b/test/book_specs.rb
@@ -1,5 +1,5 @@
require "test/unit"
-require_relative "Book"
+require "Book"
class TestBook < Test::Unit::TestCase
def test_should_be_equal
diff --git a/library_specs.rb b/test/library_specs.rb
index 9b54caf..eafe05b 100644
--- a/library_specs.rb
+++ b/test/library_specs.rb
@@ -1,5 +1,5 @@
require "test/unit"
-require_relative "book"
+require "book"
# require "library"
class Library
diff --git a/stack_specs.rb b/test/stack_specs.rb
index 5341df0..5fc7f8c 100644
--- a/stack_specs.rb
+++ b/test/stack_specs.rb
@@ -1,5 +1,5 @@
require "test/unit"
-require_relative "stack"
+require "stack"
class StackTests < Test::Unit::TestCase
def test_math
diff --git a/test/ts_all.rb b/test/ts_all.rb
new file mode 100644
index 0000000..c4422c4
--- /dev/null
+++ b/test/ts_all.rb
@@ -0,0 +1,5 @@
+require "test/unit"
+
+require "book_specs"
+require "library_specs"
+require "stack_specs"