<commit_before>require 'spec_helper'

describe ESPN::Client::Sports do
  before do
    @client = ESPN::Client.new
  end

  describe '#teams' do

    it 'gets all teams' do
      stub_get('sports/teams')
      @client.teams
      assert_requested :get, espn_url('sports/teams')
    end

    context 'with a sport param' do
      it 'should include the sport in the request' do
        stub_get('sports/baseball/teams')
        @client.teams(sport: 'baseball')
        assert_requested :get, espn_url('sports/baseball/teams')
      end

      context 'with a team_id param' do
        it 'should include the sport and team_id params in the request' do
          stub_get('sports/baseball/teams/5')<commit_msg>whoopsies, wrong description in teams_spec<commit_after>require 'spec_helper'

describe ESPN::Client::Teams do
  before do
    @client = ESPN::Client.new
  end

  describe '#teams' do

    it 'gets all teams' do
      stub_get('sports/teams')
      @client.teams
      assert_requested :get, espn_url('sports/teams')
    end

    context 'with a sport param' do
      it 'should include the sport in the request' do
        stub_get('sports/baseball/teams')
        @client.teams(sport: 'baseball')
        assert_requested :get, espn_url('sports/baseball/teams')
      end

      context 'with a team_id param' do
        it 'should include the sport and team_id params in the request' do
          stub_get('sports/baseball/teams/5')
{'fraction_non_alphanumeric': 0.09639389736477115, 'fraction_numerical': 0.0013869625520110957, 'mean_word_length': 2.910569105691057, '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': '6935394', 'n_tokens_mistral': 476, 'n_tokens_neox': 465, 'n_words': 133}