Sha256: eae70adc82aaf90d6a048f109e28ebba885e1baebd8f7aef960fb2dc8f510b3a
Contents?: true
Size: 1.24 KB
Versions: 2
Compression:
Stored size: 1.24 KB
Contents
require "spec_helper" require "lol" require "awesome_print" # Requires connection describe "Live API testing", :remote => true do before(:all) do VCR.configure do |c| c.allow_http_connections_when_no_cassette = true end end subject { Lol::Client.new ENV['RIOT_GAMES_API_KEY'] } let(:na) { Lol::Client.new ENV['RIOT_GAMES_API_KEY'], :region => "na" } let(:eune) { Lol::Client.new ENV['RIOT_GAMES_API_KEY'], :region => "eune" } let(:br) { Lol::Client.new ENV['RIOT_GAMES_API_KEY'], :region => "br"} let(:tr) { Lol::Client.new ENV['RIOT_GAMES_API_KEY'], :region => "tr"} describe "champion-v1.1" do context "working realms" do %w(euw na eune).each do |realm| it "works on #{realm}" do subject.region = realm expect { subject.champion.get }.not_to raise_error end end end end describe "game-v1.2" do context "working realms" do %w(euw na eune).each do |realm| it "works on #{realm}" do subject.region = realm expect { subject.game.recent(summoners[realm]) }.not_to raise_error end end end end after(:all) do VCR.configure do |c| c.allow_http_connections_when_no_cassette = true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-lol-0.9.3 | spec/acceptance_spec.rb |
ruby-lol-0.9.1 | spec/acceptance_spec.rb |