spec/remora_spec.rb in remora-0.0.2 vs spec/remora_spec.rb in remora-0.0.3

- old
+ new

@@ -16,11 +16,11 @@ rl = @shark.reports_left expect(rl.split("/")[-1]).to eq("200") end end describe ".search_in_sf" do - it 'loads reports for an SF property' do + xit 'loads reports for an SF property' do report = @shark.search_in_sf("155 14 St") expect(report).to eq({ :address => "155 14 St, San Francisco, CA 94103", :neighborhood => "Inner Mission (09C)", :building => { @@ -53,11 +53,11 @@ expect(properties[0][:address]).to eq("155 14 St") expect(properties[0][:owner]).to eq("Flores Family Revoc Lvg Tr") end end context 'just a last name' do - it 'the Steins' do + xit 'the Steins' do properties = @shark.search_by_name_in_sf("Stein") expect(properties.length).to be > (128) expect(properties[0][:address]).to eq("954 De Haro St") expect(properties[0][:owner]).to eq("Stein Quinton F Herz") @@ -76,9 +76,20 @@ properties = @shark.search_by_name_in_la("Shelley Jo Evans Trustee") expect(properties.length).to eq(1) expect(properties[0][:address]).to eq("9528 Wendon St") expect(properties[0][:owner]).to eq("Evans Shelley Jo Trustee") expect(properties[0][:city]).to eq("Temple City") + end + end + end + describe '.search_by_name_in_alameda' do + context 'a person has one property' do + it 'the Adeline Kaabachi' do + properties = @shark.search_by_name_in_alameda("Adeline Kaabachi") + expect(properties.length).to eq(1) + expect(properties[0][:address]).to eq("1000 39 Ave") + expect(properties[0][:owner]).to eq("Kaabachi Adeline & Neji B") + expect(properties[0][:city]).to eq("Oakland") end end end end