Sha256: f1e677dc79f1ef3dd554576a8fad9c49a0567330925aa8f85fa9127060fde13a

Contents?: true

Size: 635 Bytes

Versions: 1

Compression:

Stored size: 635 Bytes

Contents

require 'spec_helper'

describe "Protocol Buffers" do
  before :all do
    if $test_server
      @pbc_port = 9002
      $test_server.start
    end
  end

  before do
    @pbc_port ||= 8087
    @client = Riak::Client.new(:pb_port => @pbc_port, :protocol => "pbc")
  end

  after do
    $test_server.recycle if $test_server.started?
  end

  [:BeefcakeProtobuffsBackend].each do |klass|
    bklass = Riak::Client.const_get(klass)
    if bklass.configured?
      describe klass.to_s do
        before do
          @backend = bklass.new(@client)
        end

        it_should_behave_like "Unified backend API"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
seomoz-riak-client-1.0.0.pre spec/integration/riak/protobuffs_backends_spec.rb