Sha256: baf80b18c62e0eed0a265c54812a103475155f817ee59eed4e782091bd61d218

Contents?: true

Size: 664 Bytes

Versions: 5

Compression:

Stored size: 664 Bytes

Contents

require 'test_helper'

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

  def setup
    @attrs = {"summary"=> {"matches"=> {"match"=> {"id"=>"357607e9-87cd-4848-b53e-0485d9c1a3bc", "status"=>"closed", "period"=>"P2", "scheduled"=>"2016-07-13T23:00:00Z", "clock"=>"", "scratched"=>"false", "season_id"=>"34913769-58a6-487d-aa7a-1883c8f87909", "coverage"=> {"lineups"=>"2", "tactical_lineups"=>"true", "corner_facts"=>"true", "extended_facts"=>"true"} } } } }
  end

  def test_it_initializes_a_soccer_summary
    data_object = Sportradar::Api::Soccer::Summary.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/summary_test.rb
sportradar-api-0.13.3 soccer-old/summary_test.rb
sportradar-api-0.13.2 soccer-old/summary_test.rb
sportradar-api-0.13.1 soccer-old/summary_test.rb
sportradar-api-0.13.0 soccer-old/summary_test.rb