Sha256: 7b5bc925e29e575bdd4bce3379f4cd8176abeeae61f5b538c570bc0ba7d4a217
Contents?: true
Size: 877 Bytes
Versions: 4
Compression:
Stored size: 877 Bytes
Contents
require 'spec_helper' describe Medlink::User do describe ":search" do context "valid token" do before(:each) do VCR.use_cassette "users" do @searched_user = Medlink::User.search(first_name: "Julien", last_name: "Vibert").first end end it { expect(@searched_user.ecn_ranking).to eq(1) } it { expect(@searched_user.ecn_year).to eq(2015) } it { expect(@searched_user.internat_end_year).to eq(2020) } it { expect(@searched_user.first_name).to eq("Julien") } it { expect(@searched_user.last_name).to eq("Vibert") } it { expect(@searched_user.birthdate).to eq Date.new(1990, 7, 16) } it { expect(@searched_user.speciality.name).to eq("Oncologie médicale") } it { expect(@searched_user.city.name).to eq("Paris") } it { expect(@searched_user.profession.name).to eq("Interne") } end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
medlink-0.3.0 | spec/users_spec.rb |
medlink-0.2.2 | spec/users_spec.rb |
medlink-0.2.1 | spec/users_spec.rb |
medlink-0.2.0 | spec/users_spec.rb |