Sha256: c5e7ab44a3c099e711c71646b29508367dfc6b88ea30c28576cab9d3e5d24579
Contents?: true
Size: 431 Bytes
Versions: 24
Compression:
Stored size: 431 Bytes
Contents
require 'spec_helper' describe Medivo::Appointment do it "finds times" do labcorp_id=20060 date = '11/01/2011' json = "{\"times\":[\"11/03/2011|08:30 AM\",\"11/04/2011|08:30 AM\",\"11/02/2011|09:00 AM\"]}" stub_request(:get, "http://test.medivo.com/?labcorp_id=#{labcorp_id}&appointment_date=#{date}"). to_return(:body => json) Medivo::Appointment.find(labcorp_id,date).should == json end end
Version data entries
24 entries across 24 versions & 1 rubygems