Sha256: fb54c17fdc4334f0ae6dcce81d7f510d4856d54acfe77e87f81c02bf148cecac

Contents?: true

Size: 1.28 KB

Versions: 7

Compression:

Stored size: 1.28 KB

Contents

# Copyright 2010 Sean Cribbs  and Basho Technologies, Inc.
#
#    Licensed under the Apache License, Version 2.0 (the "License");
#    you may not use this file except in compliance with the License.
#    You may obtain a copy of the License at
#
#        http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS,
#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#    See the License for the specific language governing permissions and
#    limitations under the License.
require File.expand_path("../../spec_helper", File.dirname(__FILE__))

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

7 entries across 7 versions & 1 rubygems

Version Path
riak-client-0.9.8 spec/integration/riak/protobuffs_backends_spec.rb
riak-client-0.9.5 spec/integration/riak/protobuffs_backends_spec.rb
riak-client-0.9.4 spec/integration/riak/protobuffs_backends_spec.rb
riak-client-0.9.3 spec/integration/riak/protobuffs_backends_spec.rb
riak-client-0.9.2 spec/integration/riak/protobuffs_backends_spec.rb
riak-client-0.9.1 spec/integration/riak/protobuffs_backends_spec.rb
riak-client-0.9.0 spec/integration/riak/protobuffs_backends_spec.rb