Sha256: 2e57fdb4d6507cdbfaf07f97646984e9c42c01ae93bbc5053382a51ce70b3cc0
Contents?: true
Size: 527 Bytes
Versions: 1
Compression:
Stored size: 527 Bytes
Contents
# encoding: UTF-8 require 'spec_helper' describe Esearch::Presenter::Aspect::Range, '#from' do subject { object.from } let(:object) { described_class.new(raw) } let(:value) { double('Value') } context 'when _source is present' do let(:raw) { { 'from' => value } } it { should be(value) } it_should_behave_like 'an idempotent method' end context 'when _source is NOT present' do let(:raw) { {} } it { should be(nil) } 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/presenter/aspect/range/from_spec.rb |