Sha256: 1317aeb2c7afd19044881878de27e285dd5344b2dce10174049a6a2b9054eee5
Contents?: true
Size: 599 Bytes
Versions: 8
Compression:
Stored size: 599 Bytes
Contents
require 'spec_helper' describe Reviewed::Article, vcr: true do let(:client) do Reviewed::Client.new(api_key: TEST_KEY, base_uri: TEST_URL) end before(:each) do @article = client.articles.find('50fb9a81bd0286d55504b952') end it 'returns local attachments when available' do Reviewed::Request.should_not_receive(:new) @article.attachments('hero').first.tags.should eql(['hero']) end it 'fetches when a tag is not in pre-loaded set' do @article.should_receive(:fetch_attachments).with({tags: 'foobar'}) @article.attachments('foobar').should eql([]) end end
Version data entries
8 entries across 8 versions & 1 rubygems