<commit_before>require 'spec_helper'

describe LeagueApi do
	it "should gather all available requests for the gem" do
		LeagueApi.available_requests.keys.should == [LeagueApi, LeagueApi::Champion, LeagueApi::Static, LeagueApi::Game, LeagueApi::Summoner, LeagueApi::League, LeagueApi::Team, LeagueApi::Stats, LeagueApi::Util]
	end

	it "should return a list of Champions" do
		LeagueApi.get_champion_names.first.should == "Aatrox"
	end

	it "should return a list of Items" do
		LeagueApi.get_item_names.first.should == "Total Biscuit of Rejuvenation"
	end

	it "should fetch a summoners id from the summoner name" do
		LeagueApi.get_summoner_id("iSixPool").should == 25087996
	end

	it "should get the last played game from summoner id" do
		LeagueApi.get_last_game_played(25087996).keys.should == ["gameId", "invalid", "gameMode", "gameType", "subType", "mapId", "teamId", "championId", "spell1", "spell2", "level", "ipEarned", "createDate", "fellowPlayers", "stats"]
	end

	it "should return the champion played in the last game" do
		LeagueApi.get_last_champion_played(25087996).class.should == String
	end

	it "should return the time when the last game was played" do
		LeagueApi.get_time_of_last_game(25087996).class.should == Time
	end

	it "should get the current region" do
		$region == "na"
		
		LeagueApi.set_region "eu"
		$region == "eu"
	end

	it "should get the current region passed in rather than the global region" do
		LeagueApi.get_region "eu".should == "eu"
		LeagueApi.get_region.should == "na"
	end

end<commit_msg>Remove Setting from test spec<commit_after>require 'spec_helper'

describe LeagueApi do
	it "should gather all available requests for the gem" do
		LeagueApi.available_requests.keys.should == [LeagueApi, LeagueApi::Champion, LeagueApi::Static, LeagueApi::Game, LeagueApi::Summoner, LeagueApi::League, LeagueApi::Team, LeagueApi::Stats, LeagueApi::Util]
	end

	it "should return a list of Champions" do
		LeagueApi.get_champion_names.first.should == "Aatrox"
	end

	it "should return a list of Items" do
		LeagueApi.get_item_names.first.should == "Total Biscuit of Rejuvenation"
	end

	it "should fetch a summoners id from the summoner name" do
		LeagueApi.get_summoner_id("iSixPool").should == 25087996
	end

	it "should get the last played game from summoner id" do
		LeagueApi.get_last_game_played(25087996).keys.should == ["gameId", "invalid", "gameMode", "gameType", "subType", "mapId", "teamId", "championId", "spell1", "spell2", "level", "ipEarned", "createDate", "fellowPlayers", "stats"]
	end

	it "should return the champion played in the last game" do
		LeagueApi.get_last_champion_played(25087996).class.should == String
	end

	it "should return the time when the last game was played" do
		LeagueApi.get_time_of_last_game(25087996).class.should == Time
	end

end
{'fraction_non_alphanumeric': 0.1099644128113879, 'fraction_numerical': 0.024199288256227757, 'mean_word_length': 5.432494279176201, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4003136', 'n_tokens_mistral': 1016, 'n_tokens_neox': 914, 'n_words': 283}