Sha256: 2ec7bd7ae0f29432b977b0ff7883947bcb9ee0761b701e7221f8953d4f1c769b

Contents?: true

Size: 552 Bytes

Versions: 3

Compression:

Stored size: 552 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.2")
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-lol-0.9.17 spec/api_version_spec.rb
ruby-lol-0.9.16 spec/api_version_spec.rb
ruby-lol-0.9.15 spec/api_version_spec.rb