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.1 spec/models/labs_spec.rb
medivo-0.2.0 spec/models/labs_spec.rb
medivo-0.1.25 spec/models/labs_spec.rb
medivo-0.1.24 spec/models/labs_spec.rb
medivo-0.1.23 spec/models/labs_spec.rb
medivo-0.1.22 spec/models/labs_spec.rb
medivo-0.1.21 spec/models/labs_spec.rb
medivo-0.1.20 spec/models/labs_spec.rb
medivo-0.1.19 spec/models/labs_spec.rb
medivo-0.1.18 spec/models/labs_spec.rb
medivo-0.1.17 spec/models/labs_spec.rb
medivo-0.1.16 spec/models/labs_spec.rb
medivo-0.1.15 spec/models/labs_spec.rb
medivo-0.1.14 spec/models/labs_spec.rb
medivo-0.1.13 spec/models/labs_spec.rb
medivo-0.1.12 spec/models/labs_spec.rb
medivo-0.1.11 spec/models/labs_spec.rb
medivo-0.1.10 spec/models/labs_spec.rb
medivo-0.1.9 spec/models/labs_spec.rb
medivo-0.1.8 spec/models/labs_spec.rb