Sha256: 49ff8d79fbd13467006ffc261b1eec75166746c8eb288bdd065ed6007ded6820

Contents?: true

Size: 334 Bytes

Versions: 57

Compression:

Stored size: 334 Bytes

Contents

require 'spec_helper'

describe Medivo::Lab do

  it "finds labs" do
    zip_code = 90210
    labs = [BeverlyHillsLab1, BeverlyHillsLab2]
    stub_request(:get, "http://test:test@test.medivo.com/find_psc/#{zip_code}?radius=15").
            to_return(:body => labs.to_xml)

    Medivo::Lab.findLabs(zip_code).should == labs
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
medivo-0.2.24 spec/models/labs_spec.rb
medivo-0.2.21 spec/models/labs_spec.rb
medivo-0.2.20 spec/models/labs_spec.rb
medivo-0.2.19 spec/models/labs_spec.rb
medivo-0.2.18 spec/models/labs_spec.rb
medivo-0.2.17 spec/models/labs_spec.rb
medivo-0.2.16 spec/models/labs_spec.rb
medivo-0.2.15 spec/models/labs_spec.rb
medivo-0.2.14 spec/models/labs_spec.rb
medivo-0.2.13 spec/models/labs_spec.rb
medivo-0.2.12 spec/models/labs_spec.rb
medivo-0.2.11 spec/models/labs_spec.rb
medivo-0.2.10 spec/models/labs_spec.rb
medivo-0.2.9 spec/models/labs_spec.rb
medivo-0.2.8 spec/models/labs_spec.rb
medivo-0.2.7 spec/models/labs_spec.rb
medivo-0.2.6 spec/models/labs_spec.rb
medivo-0.2.5 spec/models/labs_spec.rb
medivo-0.2.3 spec/models/labs_spec.rb
medivo-0.2.2 spec/models/labs_spec.rb