Sha256: 5956fa62662599c29326e9f52116e9719bcad733e99139edaae3317426da4c71

Contents?: true

Size: 542 Bytes

Versions: 2

Compression:

Stored size: 542 Bytes

Contents

require 'test_helper'

class CallProxyTest < Test::Unit::TestCase
  context "A CallProxy" do
    setup do
      @svc = BERTRPC::Service.new('localhost', 9941)
    end

    should "be created with a Service" do
      assert BERTRPC::CallProxy.new(@svc).is_a?(BERTRPC::CallProxy)
    end
  end

  context "A CallProxy instance" do
    setup do
      svc = BERTRPC::Service.new('localhost', 9941)
      @cp = BERTRPC::CallProxy.new(@svc)
    end

    should "return a Mod instance" do
      assert @cp.myfun.is_a?(BERTRPC::Mod)
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
mojombo-bertrpc-0.2.0 test/call_proxy_test.rb
bertrpc-0.2.0 test/call_proxy_test.rb