Sha256: f0ca537d256fd25c1c05139cabc13f0c5bf909dec2b011539da1158678a67cd8

Contents?: true

Size: 610 Bytes

Versions: 2

Compression:

Stored size: 610 Bytes

Contents

# frozen_string_literal: true

RSpec.describe RatingChgkV2::Rest::TournamentTypes do
  let(:id) { 3 }

  specify '#tournament_types' do
    t_type = VCR.use_cassette('tournament_types/tournament_types') do
      test_client.tournament_types
    end.first

    expect(t_type.id).to eq(1)
    expect(t_type.name).to eq('Неизвестный')
  end

  specify '#tournament_type' do
    t_type = VCR.use_cassette('tournament_types/tournament_type') do
      test_client.tournament_type id
    end

    expect(t_type.id).to eq(id)
    expect(t_type.name).to eq('Синхрон')
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rating-chgk-v2-1.0.0 spec/lib/rating_chgk_v2/rest/tournament_types_spec.rb
rating-chgk-v2-1.0.0.rc1 spec/lib/rating_chgk_v2/rest/tournament_types_spec.rb