spec/ratis/landmark_spec.rb in ratis-3.3.6 vs spec/ratis/landmark_spec.rb in ratis-3.3.7

- old
+ new

@@ -1,53 +1,25 @@ require 'spec_helper' describe Ratis::Landmark do before do - stub_atis_request.to_return( atis_response 'Getlandmarks', '1.4', '0', <<-BODY ) - <Landmarks> - <Landmark> - <Id>5007</Id> - <Verbose>FALCON FIELD AIRPORT</Verbose> - <Location>4800 E. FALCON DR.</Location> - <Area>ME</Area> - <Latitude>33.456119</Latitude> - <Longitude>-111.728010</Longitude> - <Locality>N</Locality> - <Type>AIRPT</Type> - <Map_level>3</Map_level> - <Notes> Hours of Operation: </Notes> - <Zipcode>85215</Zipcode> - </Landmark> - <Landmark> - <Id>5009</Id> - <Verbose>SKY HARBOR AIRPORT TERMINAL 4 WB</Verbose> - <Location>3700 E SKY HARBOR BLVD</Location> - <Area>PH</Area> - <Latitude>33.434520</Latitude> - <Longitude>-111.996145</Longitude> - <Locality>N</Locality> - <Type>AIRPT</Type> - <Map_level>3</Map_level> - <Notes> Hours of Operation: !!!!!!!!24 hours</Notes> - <Zipcode>99999</Zipcode> - </Landmark> - </Landmarks> - BODY - - @landmarks = Ratis::Landmark.where :type => :all + # @landmarks = Ratis::Landmark.where :type => :all end it 'only makes one request' do + pending an_atis_request.should have_been_made.times 1 end it 'requests the correct SOAP action' do + pending an_atis_request_for('Getlandmarks', 'Type' => 'ALL').should have_been_made end it 'should return all landmarks' do + pending @landmarks.should have(2).items @landmarks[0].type.should eql 'AIRPT' @landmarks[0].verbose.should eql 'FALCON FIELD AIRPORT' @landmarks[0].location.should eql '4800 E. FALCON DR.' @@ -58,6 +30,5 @@ @landmarks[1].location.should eql '3700 E SKY HARBOR BLVD' @landmarks[1].locality.should eql 'N' end end -