Sha256: bd8d972f265e92a0d6e344e790efa7919bfaa2c09852d5a1dda779fa7b5f19b9
Contents?: true
Size: 1.52 KB
Versions: 3
Compression:
Stored size: 1.52 KB
Contents
require 'soda_xml_team' require 'webmock/rspec' RSpec.configure do |config| config.before(:each) do if ENV['SODA_USERNAME'].nil? || ENV['SODA_PASSWORD'].nil? ENV['SODA_USERNAME'] = 'testuser' ENV['SODA_PASSWORD'] = 'testpassword' end stub_request(:get, "https://#{ENV['SODA_USERNAME']}:#{ENV['SODA_PASSWORD']}@soda.xmlteam.com/api-trial/getListings?earliest-date-time=20100101T000000-0500&fixture-keys=schedule-single-team&latest-date-time=20110101T000000-0500&league-keys=l.nhl.com&max-result-count=10&revision-control=latest-only&stylesheet=sportsml2rss-1.0-s&team-keys=l.nhl.com-t.19"). to_return(:status => 200, :body => File.new("spec/fixtures/get_listing_schedule.xml").read, :headers => {}) stub_request(:get, "https://#{ENV['SODA_USERNAME']}:#{ENV['SODA_PASSWORD']}@soda.xmlteam.com/api-trial/getDocuments?doc-ids=xt.10875359-nas-sked"). to_return(:status => 200, :body => File.new("spec/fixtures/get_document_schedule.xml").read, :headers => {}) stub_request(:get, "https://#{ENV['SODA_USERNAME']}:#{ENV['SODA_PASSWORD']}@soda.xmlteam.com/api-trial/getDocuments?doc-ids=xt.3329967-NAS-2005-OUTLOOK"). to_return(:status => 200, :body => File.new("spec/fixtures/get_document_news.xml").read, :headers => {}) stub_request(:get, "https://#{ENV['SODA_USERNAME']}:#{ENV['SODA_PASSWORD']}@soda.xmlteam.com/api-trial/getDocuments?doc-ids=xt.10878197-standings"). to_return(:status => 200, :body => File.new("spec/fixtures/get_document_standings.xml").read, :headers => {}) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
soda_xml_team-1.3.1 | spec/spec_helper.rb |
soda_xml_team-1.3.0 | spec/spec_helper.rb |
soda_xml_team-1.2.0 | spec/spec_helper.rb |