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

Version Path
medivo-0.1.24 spec/models/appointment_spec.rb
medivo-0.1.23 spec/models/appointment_spec.rb
medivo-0.1.22 spec/models/appointment_spec.rb
medivo-0.1.21 spec/models/appointment_spec.rb
medivo-0.1.20 spec/models/appointment_spec.rb
medivo-0.1.19 spec/models/appointment_spec.rb
medivo-0.1.18 spec/models/appointment_spec.rb
medivo-0.1.17 spec/models/appointment_spec.rb
medivo-0.1.16 spec/models/appointment_spec.rb
medivo-0.1.15 spec/models/appointment_spec.rb
medivo-0.1.14 spec/models/appointment_spec.rb
medivo-0.1.13 spec/models/appointment_spec.rb
medivo-0.1.12 spec/models/appointment_spec.rb
medivo-0.1.11 spec/models/appointment_spec.rb
medivo-0.1.10 spec/models/appointment_spec.rb
medivo-0.1.9 spec/models/appointment_spec.rb
medivo-0.1.8 spec/models/appointment_spec.rb
medivo-0.1.7 spec/models/appointment_spec.rb
medivo-0.1.6 spec/models/appointment_spec.rb
medivo-0.1.5 spec/models/appointment_spec.rb