Sha256: 69ee7c28439d1cd84d0d5cbce74709c2331803e9978d041306bd58d562be61be
Contents?: true
Size: 769 Bytes
Versions: 4
Compression:
Stored size: 769 Bytes
Contents
require 'spec_helper' RSpec.describe Smite::MatchSummary do let(:player) { Smite::Game.player('adapting') } let(:smite_obj) { player.match_history[0] } describe '#to_full_match' do it 'returns a Smite::FullMatch version of this object' do expect(smite_obj.to_full_match.class).to eq(Smite::FullMatch) end it 'is also known as #full_match' do expect(smite_obj).to respond_to(:full_match) end end describe '#win?' do it 'returns true if the match was a win' do expect(smite_obj.win?).to eq(true) end it 'returns false if the match was a loss' do allow(smite_obj).to receive(:win_status).and_return('Loss') expect(smite_obj.win?).to eq(false) end end it_behaves_like 'a Smite::Object' end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
smite_ruby-1.5.1 | spec/match_summary_spec.rb |
smite_ruby-1.5.0 | spec/match_summary_spec.rb |
smite_ruby-1.4.9 | spec/match_summary_spec.rb |
smite_ruby-1.4.6 | spec/match_summary_spec.rb |