Sha256: 385bbf6398d4bd1e37b893e7847ef619b60d0c0ef59ec0cb22e60067ea65b4f8

Contents?: true

Size: 508 Bytes

Versions: 2

Compression:

Stored size: 508 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

describe Wikipedia::Url, 'like http://en.wikipedia.org/wiki/Getting_Things_Done' do
  it 'should have a title of Getting_Things_Done' do
    url = Wikipedia::Url.new('http://en.wikipedia.org/wiki/Getting_Things_Done')
    expect(url.title).to eq('Getting_Things_Done')
  end
end

describe Wikipedia::Url, 'like "? (Lost)"' do
  it 'should return input as title' do
    url = Wikipedia::Url.new('? (Lost)')
    expect(url.title).to eq('? (Lost)')
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wikipedia-client-1.17.0 spec/lib/url_spec.rb
wikipedia-client-1.16.0 spec/lib/url_spec.rb