Sha256: 3b4135cf128e656d1fbd8be8bdaf35aa1aaf73c6bc3282a278d4c25d958ea9ad
Contents?: true
Size: 890 Bytes
Versions: 1
Compression:
Stored size: 890 Bytes
Contents
require 'spec_helper' describe Ratis::Landmark do before do # @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.' @landmarks[0].locality.should eql 'N' @landmarks[1].type.should eql 'AIRPT' @landmarks[1].verbose.should eql 'SKY HARBOR AIRPORT TERMINAL 4 WB' @landmarks[1].location.should eql '3700 E SKY HARBOR BLVD' @landmarks[1].locality.should eql 'N' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ratis-3.3.7 | spec/ratis/landmark_spec.rb |