Sha256: 1820822b24592c3aa575aa24b3618f681af5ded14c65a821caa49ed2fa2ed556

Contents?: true

Size: 349 Bytes

Versions: 1

Compression:

Stored size: 349 Bytes

Contents

# encoding: UTF-8

require 'spec_helper'

describe Esearch::Presenter::Hits, '#size' do
  subject { object.size }

  let(:object) { described_class.new(raw)         }
  let(:size)   { double('Size')                   }
  let(:raw)    { { 'hits' => double(size: size) } }

  it { should be(size) }

  it_should_behave_like 'an idempotent method'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
esearch-0.2.2 spec/unit/esearch/presenter/hits/size_spec.rb