diff options
| author | mo k <m@mokhan.ca> | 2011-11-12 09:45:15 -0700 |
|---|---|---|
| committer | mo k <m@mokhan.ca> | 2011-11-12 09:45:15 -0700 |
| commit | 053247ee4bf2131be768ac87a01644435b2a263f (patch) | |
| tree | 937f6bf8efa6b7e0332f1dcdf4ae4b88c3691956 | |
| parent | ce1ba7b763880671510d469b2810b3fc4c0e907e (diff) | |
move publisher to a separate file.
| -rw-r--r-- | lib/publisher.rb | 5 | ||||
| -rw-r--r-- | test/book_specs.rb | 6 | ||||
| -rw-r--r-- | test/library_specs.rb | 1 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/publisher.rb b/lib/publisher.rb new file mode 100644 index 0000000..6bd06aa --- /dev/null +++ b/lib/publisher.rb @@ -0,0 +1,5 @@ +class Publisher + def initialize(name) + @name = name + end +end diff --git a/test/book_specs.rb b/test/book_specs.rb index 805aef6..ba1fe03 100644 --- a/test/book_specs.rb +++ b/test/book_specs.rb @@ -1,10 +1,4 @@ require "Book" -class Publisher - - def initialize(name) - @name = name - end -end class TestBook < Test::Unit::TestCase def setup diff --git a/test/library_specs.rb b/test/library_specs.rb index af7bfec..f2972c1 100644 --- a/test/library_specs.rb +++ b/test/library_specs.rb @@ -1,4 +1,5 @@ require "book" +require "publisher" require "library" class TestLibrary < Test::Unit::TestCase |
