Sha256: 8ff198a96873bfb07ea81cce86271afa1f2208d3824eda6435ed29c3a411c5eb

Contents?: true

Size: 386 Bytes

Versions: 1

Compression:

Stored size: 386 Bytes

Contents

# encoding: UTF-8

require 'spec_helper'

describe Esearch::Indices do
  let(:object)     { described_class.new(connection, names) }
  let(:connection) { double('Connection')                   }

  let(:names) { %w(foo bar) }

  describe '#path' do
    subject { object.path }

    it { should eql(Pathname.new('/foo,bar')) }

    it_should_behave_like 'an idempotent method'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
esearch-0.2.2 spec/unit/esearch/indices_spec.rb