Sha256: 40e9136f6b171df29f2ed17a779aa68fb29353d595232649b5df188dd9529013

Contents?: true

Size: 508 Bytes

Versions: 5

Compression:

Stored size: 508 Bytes

Contents

require 'test_helper'

class Sportradar::Api::Soccer::BoxscoreTest < Minitest::Test

  def setup
    @attrs = {"boxscore"=> {"matches"=> {"match"=> [{"id"=>"3f7eb973-daab-49e5-b91a-6ab7cc1301a1", "status"=>"closed", "period"=>"P2", "scheduled"=>"2016-09-30T00:00:00Z", "clock"=>"", "scratched"=>"false"} ] } } }
  end

  def test_it_initializes_a_soccer_boxscore
    data_object = Sportradar::Api::Soccer::Boxscore.new(@attrs)
    assert [:matches].all? { |e| data_object.attributes.include?(e) }
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sportradar-api-0.13.4 soccer-old/boxscore_test.rb
sportradar-api-0.13.3 soccer-old/boxscore_test.rb
sportradar-api-0.13.2 soccer-old/boxscore_test.rb
sportradar-api-0.13.1 soccer-old/boxscore_test.rb
sportradar-api-0.13.0 soccer-old/boxscore_test.rb