Sha256: a283ed395c094f40be4c31ff4f07ccae71d2d638677c2e7bd921e3ef88095b39
Contents?: true
Size: 570 Bytes
Versions: 3
Compression:
Stored size: 570 Bytes
Contents
require "#{File.dirname(__FILE__)}/../helper" class ObjectTest < Test::Unit::TestCase context "Object" do setup do @o = Object.new end context "for method erlang" do should "respond to :erlang" do assert_respond_to @o, :erlang end should "create a new ErlMapper" do blk = Proc.new {} assert_equal ErlMapper, @o.erlang(&blk).class end should "not create a new ErlMapper if there is no block passed" do assert_equal @o.erlang, nil end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
auser-skelerl-0.0.2 | test/erlpers/object_spec.rb |
auser-skelerl-0.0.3 | test/erlpers/object_spec.rb |
auser-skelerl-0.0.4 | test/erlpers/object_spec.rb |