Sha256: 61b65cf22e8957493daeb7be1c0367ba89ee0f5d15cd47b99524f79c688dd297

Contents?: true

Size: 822 Bytes

Versions: 3

Compression:

Stored size: 822 Bytes

Contents

require 'spec_helper'

describe Bnet::Starcraft2::Match do
  describe '.all(profile)', vcr: {cassette_name: 'SC2 Matches for Naniwa Profile found'} do
    subject{described_class.all(profile)}
    let(:profile) { Bnet::Starcraft2::Profile.new(profile_id: 2210662, name: 'NaNiwa', region: 'eu')}

    it "returns a collection of matches for a given profile"  do
      expect(subject).to include(
        an_object_having_attributes( map: "Deadwing LE", match_type: "SOLO", decision: "WIN", speed: "FASTER", date: 1410222237),
        an_object_having_attributes( map: "Deadwing LE", match_type: "SOLO", decision: "WIN", speed: "FASTER", date: 1410221657),
        an_object_having_attributes( map: "King Sejong Station LE", match_type: "SOLO", decision: "WIN", speed: "FASTER", date: 1410220846)
      )
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bnet-0.0.10 spec/bnet/starcraft2/match_spec.rb
bnet-0.0.5 spec/bnet/starcraft2/match_spec.rb
bnet-0.0.4 spec/bnet/starcraft2/match_spec.rb