From 053247ee4bf2131be768ac87a01644435b2a263f Mon Sep 17 00:00:00 2001 From: mo k Date: Sat, 12 Nov 2011 09:45:15 -0700 Subject: move publisher to a separate file. --- lib/publisher.rb | 5 +++++ test/book_specs.rb | 6 ------ test/library_specs.rb | 1 + 3 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 lib/publisher.rb 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 -- cgit v1.2.3