mirror of
https://github.com/samsonjs/instapaper.git
synced 2026-04-21 13:25:48 +00:00
12 lines
325 B
Ruby
12 lines
325 B
Ruby
require 'spec_helper'
|
|
|
|
describe Instapaper::BookmarkList do
|
|
describe '#each' do
|
|
it 'yields a list of bookmarks' do
|
|
list = Instapaper::BookmarkList.new(JSON.parse(fixture('bookmarks_list.json').read))
|
|
list.each do |bookmark|
|
|
expect(bookmark).to be_an Instapaper::Bookmark
|
|
end
|
|
end
|
|
end
|
|
end
|