Sha256: 5329fdd7ea2a37ebc558128ff315ebd27ed851edb35a405004d31c2e19ad480d

Contents?: true

Size: 540 Bytes

Versions: 1

Compression:

Stored size: 540 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.2")
  check_api_version(LeagueRequest, "v2.2")
  check_api_version(StatsRequest, "v1.2")
  check_api_version(SummonerRequest, "v1.1") # current: v1.2
  check_api_version(TeamRequest, "v2.1") # curent: v2.2
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-lol-0.9.3 spec/api_version_spec.rb