Sha256: 36b4f6bae37aa760cf7acd283bba5199ed7c97c2863112f21ecf6c5558dac5a5
Contents?: true
Size: 577 Bytes
Versions: 3
Compression:
Stored size: 577 Bytes
Contents
require 'spec_helper' describe Petfinder::Pet do before do @shelter = Petfinder::Shelter.new(Nokogiri::XML(fixture_file('shelter.xml'))) end it "should populate attributes of shelter" do [:id, :name, :address1, :address2, :city, :state, :zip, :country, :latitude, :longitude, :phone, :fax, :email].each do |attr| @shelter.send(attr).should_not == "" end end it "should populate multiple shelter objects" do shelters = Petfinder::Shelter.multiple(Nokogiri::XML(fixture_file('shelter_list.xml'))) shelters.should have(25).items end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
petfinder-1.0.2 | spec/shelter_spec.rb |
petfinder-1.0.1 | spec/shelter_spec.rb |
petfinder-1.0.0 | spec/shelter_spec.rb |