From bf8f95fdd25a68d02598c7be864bc97c05132c90 Mon Sep 17 00:00:00 2001 From: Jérémy Zurcher Date: Fri, 23 Sep 2011 08:35:35 +0200 Subject: everything is packed into ruby-gems directory --- ruby-gem/spec/lib_spec.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ruby-gem/spec/lib_spec.rb (limited to 'ruby-gem/spec') 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 -- cgit v1.2.3