Sha256: 82fc5231039cf55a42b53d4da0a5944e5ba4f00092831b462c6990a964125f5d
Contents?: true
Size: 608 Bytes
Versions: 11
Compression:
Stored size: 608 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe Wikipedia, '.find' do it 'should return a Wikipedia::Page instance' do page = Wikipedia.find('Getting_Things_Done') expect(page).to be_an_instance_of(Wikipedia::Page) end it 'should return a Page with a title' do page = Wikipedia.find('Getting_Things_Done') expect(page.title).not_to be_nil end it 'should return a Page given a URL' do page1 = Wikipedia.find('Getting_Things_Done') page2 = Wikipedia.find('http://en.wikipedia.org/wiki/Getting_Things_Done') expect(page1.title).to eq(page2.title) end end
Version data entries
11 entries across 11 versions & 1 rubygems