Sha256: ca5984b664fbecd337556e157b3cc5ad4bcea868314b26633d87d0be326b020f
Contents?: true
Size: 557 Bytes
Versions: 17
Compression:
Stored size: 557 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Arstotzka::FetcherBuilder do subject(:builder) do described_class.new options end let(:instance) { Arstotzka::Dummy.new(hash) } let(:options) { { path: 'person', key: :id } } let(:hash) do { person: { id: 10 } } end describe '#build' do let(:fetcher) { builder.build(instance) } it do expect(fetcher).to be_a(Arstotzka::Fetcher) end it 'builds a fetcher capable of fetching' do expect(fetcher.fetch).to eq(10) end end end
Version data entries
17 entries across 17 versions & 1 rubygems