Sha256: 0e15cffa3c0393d7a31d4272a3f13796abf17d132581620658b897f3a304d8a4

Contents?: true

Size: 550 Bytes

Versions: 2

Compression:

Stored size: 550 Bytes

Contents

require "spec_helper"
require "lol"

include Lol


def check_api_version(klass, version)
  describe klass do
    it "should use API version #{version}" do
      expect(klass.api_version).to eq(version)
    end
  end
end

describe "API Versions" do
  check_api_version(ChampionRequest, "v1.2")
  check_api_version(GameRequest, "v1.3")
  check_api_version(LeagueRequest, "v2.3")
  check_api_version(StatsRequest, "v1.3")
  check_api_version(SummonerRequest, "v1.4")
  check_api_version(TeamRequest, "v2.2")
  check_api_version(StaticRequest, "v1")
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby-lol-0.9.14 spec/api_version_spec.rb
ruby-lol-0.9.13 spec/api_version_spec.rb