diff options
Diffstat (limited to 'ruby-gem/spec')
-rw-r--r-- | ruby-gem/spec/lib_spec.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ruby-gem/spec/lib_spec.rb b/ruby-gem/spec/lib_spec.rb new file mode 100644 index 0000000..4b79596 --- /dev/null +++ b/ruby-gem/spec/lib_spec.rb @@ -0,0 +1,20 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'lib' +# +describe LIB do + # + it "should instanciate Test class" do + LIB::Test.new + end + # + it "should respond to hello" do + LIB::Test.new.respond_to?( :hello).should be_true + end + # + it "should respond to world to hello" do + LIB::Test.new.hello.should eql "world" + end + # +end |