Sha256: ca7e18d1216d7e759aed8d5db1cd097338983cdec35c52c7b853120b61e61955

Contents?: true

Size: 589 Bytes

Versions: 30

Compression:

Stored size: 589 Bytes

Contents

require 'spec_helper'
require 'spec/support/test/resource_service'
require 'protobuf/rpc/servers/evented_runner'
require 'protobuf/evented'

describe Protobuf::Rpc::Evented::Server do

  it "provides a Runner class" do
    runner_class = described_class.to_s.gsub(/Evented::Server/, "EventedRunner")
    expect { runner_class.constantize }.to_not raise_error
  end

  it "Runner provides a stop method" do
    runner_class = described_class.to_s.gsub(/Evented::Server/, "EventedRunner").constantize
    runner = runner_class.new({})
    runner.respond_to?(:stop).should be_true
  end

end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
protobuf-2.8.13 spec/lib/protobuf/rpc/servers/evented_server_spec.rb
protobuf-2.8.12 spec/lib/protobuf/rpc/servers/evented_server_spec.rb
protobuf-2.8.11 spec/lib/protobuf/rpc/servers/evented_server_spec.rb
protobuf-2.8.10 spec/lib/protobuf/rpc/servers/evented_server_spec.rb
protobuf-2.8.9 spec/lib/protobuf/rpc/servers/evented_server_spec.rb
protobuf-2.8.8 spec/lib/protobuf/rpc/servers/evented_server_spec.rb
protobuf-2.8.7 spec/lib/protobuf/rpc/servers/evented_server_spec.rb
protobuf-2.8.6 spec/lib/protobuf/rpc/servers/evented_server_spec.rb
protobuf-2.8.5 spec/lib/protobuf/rpc/servers/evented_server_spec.rb
protobuf-2.8.4 spec/lib/protobuf/rpc/servers/evented_server_spec.rb
protobuf-2.8.3 spec/lib/protobuf/rpc/servers/evented_server_spec.rb
protobuf-2.8.2 spec/lib/protobuf/rpc/servers/evented_server_spec.rb
protobuf-2.8.1 spec/lib/protobuf/rpc/servers/evented_server_spec.rb
protobuf-2.8.0 spec/lib/protobuf/rpc/servers/evented_server_spec.rb
protobuf-2.8.0.beta9-java spec/lib/protobuf/rpc/servers/evented_server_spec.rb
protobuf-2.8.0.beta9 spec/lib/protobuf/rpc/servers/evented_server_spec.rb
protobuf-2.8.0.beta8-java spec/lib/protobuf/rpc/servers/evented_server_spec.rb
protobuf-2.8.0.beta8 spec/lib/protobuf/rpc/servers/evented_server_spec.rb
protobuf-2.8.0.beta6-java spec/lib/protobuf/rpc/servers/evented_server_spec.rb
protobuf-2.8.0.beta6 spec/lib/protobuf/rpc/servers/evented_server_spec.rb