diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-18 16:17:37 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-18 16:17:37 +0200 |
commit | ee2e1fff620f8d43c4230ea92f75477af40dbe96 (patch) | |
tree | a7bd5d511e36eaa69d1159ad2b3e6d757d39fb9d | |
parent | b26215c909c9388753979f6e1a71744e18212b73 (diff) | |
download | skeletons-ee2e1fff620f8d43c4230ea92f75477af40dbe96.zip skeletons-ee2e1fff620f8d43c4230ea92f75477af40dbe96.tar.gz |
ruby-gem: clenaup
-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 |