From ee2e1fff620f8d43c4230ea92f75477af40dbe96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 18 May 2012 16:17:37 +0200 Subject: ruby-gem: clenaup --- ruby-gem/lib/lib.rb | 4 ++-- ruby-gem/spec/lib_spec.rb | 10 ++++++---- 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 -- cgit v1.1-2-g2b99