diff options
Diffstat (limited to 'ruby-gem')
| -rw-r--r-- | ruby-gem/lib/lib.rb | 4 | ||||
| -rw-r--r-- | ruby-gem/spec/lib_spec.rb | 10 | ||||
| -rw-r--r-- | ruby-gem/test/test_lib.rb | 2 | 
3 files changed, 9 insertions, 7 deletions
| diff --git a/ruby-gem/lib/lib.rb b/ruby-gem/lib/lib.rb index 33a3380..df31d34 100644 --- a/ruby-gem/lib/lib.rb +++ b/ruby-gem/lib/lib.rb @@ -4,8 +4,8 @@  module LIB      #      class Test -        def hello -            "world" +        def say +            "hello world"          end      end      # diff --git a/ruby-gem/spec/lib_spec.rb b/ruby-gem/spec/lib_spec.rb index 4b79596..2ae8b71 100644 --- a/ruby-gem/spec/lib_spec.rb +++ b/ruby-gem/spec/lib_spec.rb @@ -9,12 +9,14 @@ describe LIB do          LIB::Test.new      end      # -    it "should respond to hello" do -        LIB::Test.new.respond_to?( :hello).should be_true +    it "should respond to say" do +        LIB::Test.new.respond_to?(:say).should be_true      end      # -    it "should respond to world to hello" do -        LIB::Test.new.hello.should eql "world" +    it "say should return hello world" do +        LIB::Test.new.say.should eql "hello world"      end      #  end +# +# EOF diff --git a/ruby-gem/test/test_lib.rb b/ruby-gem/test/test_lib.rb index bf3a665..0638daa 100644 --- a/ruby-gem/test/test_lib.rb +++ b/ruby-gem/test/test_lib.rb @@ -3,6 +3,6 @@  #  require 'lib'  # -LIB::Test.new.hello +puts LIB::Test.new.say  #  # EOF | 
