Sha256: 25cb44587417a6a036ca35a314e1a50fc33bc540c359b8a97776f67c3684e047
Contents?: true
Size: 641 Bytes
Versions: 2
Compression:
Stored size: 641 Bytes
Contents
require 'spec_helper' describe Polterheist::TheMLS do describe "#locate_property" do let(:result) { subject.locate_property address } context "could not locate property with address" do let(:address) { "8622 LEHIGH Ave" } it "returns false" do result.should be_false end end context "located the property with the address" do let(:address) { "7654 WESTLAND Ave" } it "data can be further extracted" do doc = Nokogiri::HTML.parse(result) img_src = doc.css(".mainImage img").first.attr :src img_src.should match /(jpg|png)/ end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
polterheist-0.0.3 | spec/lib/polterheist/themls_spec.rb |
polterheist-0.0.2 | spec/lib/polterheist/themls_spec.rb |