2011-02-04 1 views
0

현재 외부 XML 피드를 사용하여 모델을 채우는 모델 (탭이 없음)이 있습니다. 시험 할 물건의 종류는 무엇입니까? 나는 이것이 올바른 계획인지에 ... 아래로 다음과 같은 몇 가지를 작성RSpec 모델, 외부 XML 피드로 테스트

describe Listing, 'Fetch for XML Feed' do
it "should be able to connect to the internet" do
it "should raise an error if it cannot connect to the internet" do
it "should exist at the given URL" do
it "should raise an error if not found" do
it "should contain certain tags in the document" do
end

어떤 생각을 시작했다?

답변