Sha256: 30cc55d4e971c5845b9cfbabb5d675ae09dbba75ee08c5ef25e28f4c83c92c7c
Contents?: true
Size: 777 Bytes
Versions: 3
Compression:
Stored size: 777 Bytes
Contents
require 'rspec/webservice_matchers' # # TODO: set up a test server or mocks for these. # describe 'status_code' do it 'can check 200 for successful resource requests' do 'http://www.rfc-editor.org/rfc/rfc2616.txt'.should be_status 200 end it 'handles domain names as well as URLs' do 'www.rfc-editor.org'.should be_status 200 end it 'can check 503 for the Service Unavailable status' do 'http://www.weblaws.org/texas/laws/tex._spec._dist._local_laws_code_section_1011.202_tax_to_pay_general_obligation_bonds'.should be_status 503 end end describe 'be_up' do it 'follows redirects when necessary' do 'weblaws.org'.should be_up end it 'can also handle a simple 200' do 'http://www.rfc-editor.org/rfc/rfc2616.txt'.should be_up end end
Version data entries
3 entries across 3 versions & 1 rubygems