Sha256: f89eb2001d82725c83d2846f4a2e478bffbcc2657558fe2b2cbf827c284f7c45
Contents?: true
Size: 540 Bytes
Versions: 3
Compression:
Stored size: 540 Bytes
Contents
require 'test_helper' class ModTest < Test::Unit::TestCase context "A Mod" do setup do @svc = BERTRPC::Service.new('localhost', 9941) end should "be created with a Service and module name" do assert BERTRPC::Mod.new(@svc, :mymod).is_a?(BERTRPC::Mod) end end context "A Mod instance" do setup do svc = BERTRPC::Service.new('localhost', 9941) @mod = BERTRPC::Mod.new(@svc, :mymod) end should "return a Fun instance" do assert @mod.myfun.is_a?(BERTRPC::Fun) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mojombo-bertrpc-0.1.0 | test/mod_test.rb |
mojombo-bertrpc-0.1.1 | test/mod_test.rb |
mojombo-bertrpc-0.1.2 | test/mod_test.rb |