Sha256: 72870e22f30acad24b5c61211ce9b50a9e3924685ce3423f2f0b2a362178c8f2

Contents?: true

Size: 546 Bytes

Versions: 12

Compression:

Stored size: 546 Bytes

Contents

require 'spec_helper'

describe Consul::Client::Base do

  before :all do
    # Create a temporary directory that will be cleaned up
    # dir = Dir.mktmpdir('consul-client4r-test', Dir.tmpdir)
    # @pid = Process.spawn("consul agent --server -data-dir=#{dir}")
  end

  after :all do
    # Detach process and then kill it.
    # Process.detach(@pid)
    # Process.kill(:SIGINT, @pid)
  end

  class BaseApiImpl
    include Consul::Client::Base
  end

  it 'should be reachable' do
    expect(BaseApiImpl.new.is_reachable).to eq(true)
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
consul-ruby-client-0.0.13 spec/base_client_spec.rb
consul-ruby-client-0.0.12 spec/base_client_spec.rb
consul-ruby-client-0.0.11 spec/base_client_spec.rb
consul-ruby-client-0.0.10 spec/base_client_spec.rb
consul-ruby-client-0.0.9 spec/base_client_spec.rb
consul-ruby-client-0.0.8 spec/base_client_spec.rb
consul-ruby-client-0.0.7 spec/base_client_spec.rb
consul-ruby-client-0.0.6 spec/base_client_spec.rb
consul-ruby-client-0.0.5 spec/base_client_spec.rb
consul-ruby-client-0.0.4 spec/base_client_spec.rb
consul-ruby-client-0.0.3 spec/base_client_spec.rb
consul-ruby-client-0.0.2 spec/base_client_spec.rb