Sha256: c09bf5753866948757ea7d14c3d14f897b24e21d97305be8a98545c813653363
Contents?: true
Size: 829 Bytes
Versions: 1
Compression:
Stored size: 829 Bytes
Contents
require 'spec_helper' describe 'LabController' do before do WebMock.allow_net_connect! end describe "#data" do before do @zip_code = "90210" stub(Medivo::ZipCode).find_by_zip_code(@zip_code) { BeverlyHillsZipCode } stub(Medivo::Lab).findLabs(@zip_code) { [BeverlyHillsLab1, BeverlyHillsLab2] } end it "returns lab and zip data" do visit Medivo::Engine.routes.url_helpers.data_labs_path(@zip_code) # can't seem to get json back .. just html .. but it works in rails server just fine' #p page.body JSON.parse(page.body)#.should = [BeverlyHillsLab1, BeverlyHillsLab2] end it "shows search results on the map", :js=>true, :driver=>:selenium_chrome do visit search_labs_path(:zip_code=>@zip_code) p page.body sleep 14 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
medivo-0.0.1 | spec/requests/labs_spec.rb |