Sha256: b8461a2c106dab0fa7bb20c37b342e0b5f907fa28d8c9c9895369dcc52c93a2f

Contents?: true

Size: 702 Bytes

Versions: 1

Compression:

Stored size: 702 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(:engaged)
      expect(result.biography.first_name).to eq('Candice')
      expect(result.biography.last_name).to eq('Swanepoel')
      expect(result.biography.age).to eq(27)

      result = client.fetch('Jennifer Lawrence')
      expect(result.status).to eq(:dating)
      expect(result.biography.first_name).to eq('Jennifer')
      expect(result.biography.last_name).to eq('Lawrence')
      expect(result.biography.age).to eq(25)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
whos_dated_who-1.0.4 spec/acceptance/whos_dated_who_spec.rb