spec/lib/caramelize/input_wiki/wiki_spec.rb in caramelize-1.0.0 vs spec/lib/caramelize/input_wiki/wiki_spec.rb in caramelize-1.1.0
- old
+ new
@@ -15,10 +15,10 @@
end
end
context 'pages with revisions' do
it 'returns list of latest pages' do
- wiki.titles = ['allosaurus', 'brachiosaurus']
+ wiki.titles = %w[allosaurus brachiosaurus]
allow(wiki).to receive(:revisions_by_title)
.with('allosaurus').and_return([page1, page2])
allow(wiki).to receive(:revisions_by_title)
.with('brachiosaurus').and_return([page3])