diff options
| author | mo k <m@mokhan.ca> | 2011-11-11 20:14:56 -0700 |
|---|---|---|
| committer | mo k <m@mokhan.ca> | 2011-11-11 20:14:56 -0700 |
| commit | 50bfdb46921374cefe0f49fc01b62ad04e1284ab (patch) | |
| tree | b3f02ea1c049b3330f15c313bcb8c119c3eec5b6 | |
| parent | d44be018966cc153ff5501ff3fbd065f6c91b2ad (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-- | rakefile | 3 | ||||
| -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.rb | 5 |
7 files changed, 11 insertions, 3 deletions
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" |
