Sha256: 697993db2f72f2ada7817ed3b25d14f936e8c9d01eda08b3153f68f4499b383b

Contents?: true

Size: 700 Bytes

Versions: 4

Compression:

Stored size: 700 Bytes

Contents

require 'spec_helper'

describe WhosDatedWho do
  let(:client) { WhosDatedWho::Client.new }

  context 'smoke test' do
    it 'fetches and parses the correct results' do
      result = client.fetch('Candice Swanepoel')
      expect(result.status).to eq(:dating)
      expect(result.biography.first_name).to eq('Candice')
      expect(result.biography.last_name).to eq('Swanepoel')
      expect(result.biography.age).to eq(26)

      result = client.fetch('Katheryn Winnick')
      expect(result.status).to eq(:unknown)
      expect(result.biography.first_name).to eq('Katheryn')
      expect(result.biography.last_name).to eq('Winnick')
      expect(result.biography.age).to eq(37)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
whos_dated_who-1.0.2 spec/acceptance/whos_dated_who_spec.rb
whos_dated_who-1.0.1 spec/acceptance/whos_dated_who_spec.rb
whos_dated_who-1.0.0 spec/acceptance/whos_dated_who_spec.rb
whos_dated_who-0.3.1 spec/acceptance/whos_dated_who_spec.rb