Sha256: 7dca4238a9d5bd25b47491b468b28bf1a686724091c0e2c2fae6bae514369358

Contents?: true

Size: 509 Bytes

Versions: 4

Compression:

Stored size: 509 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.1")
  check_api_version(GameRequest, "v1.3")
  check_api_version(LeagueRequest, "v2.3")
  check_api_version(StatsRequest, "v1.2")
  check_api_version(SummonerRequest, "v1.3")
  check_api_version(TeamRequest, "v2.2")
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruby-lol-0.9.10 spec/api_version_spec.rb
ruby-lol-0.9.9 spec/api_version_spec.rb
ruby-lol-0.9.8 spec/api_version_spec.rb
ruby-lol-0.9.7 spec/api_version_spec.rb