Sha256: 7b94dc147bbab487506e2b0c5e21a87cfd9f9e2acd211b1a0ba448d0d5a0d8dc

Contents?: true

Size: 592 Bytes

Versions: 32

Compression:

Stored size: 592 Bytes

Contents

require "spec_helper"
require "lol"

include Lol

describe MatchSummary do
  it_behaves_like 'Lol model' do
    let(:valid_attributes) { { win: true } }
  end

  %w(assists deaths game_id game_mode invalid kills map_id opposing_team_kills opposing_team_name win).each do |attribute|
    describe "#{attribute} attribute" do
      it_behaves_like 'plain attribute' do
        let(:attribute) { attribute }
        let(:attribute_value) { 'asd' }
      end
    end
  end

  describe "date attribute" do
    it_behaves_like 'time attribute' do
      let(:attribute) { 'date' }
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
ruby-lol-0.12.2 spec/lol/match_summary_spec.rb
ruby-lol-0.12.1 spec/lol/match_summary_spec.rb
ruby-lol-0.12.0 spec/lol/match_summary_spec.rb
ruby-lol-0.11.6 spec/lol/match_summary_spec.rb
ruby-lol-0.11.5 spec/lol/match_summary_spec.rb
ruby-lol-0.11.4 spec/lol/match_summary_spec.rb
ruby-lol-0.11.3 spec/lol/match_summary_spec.rb
ruby-lol-0.11.2 spec/lol/match_summary_spec.rb
ruby-lol-0.11.1 spec/lol/match_summary_spec.rb
ruby-lol-0.11.0 spec/lol/match_summary_spec.rb
ruby-lol-0.10.0 spec/lol/match_summary_spec.rb
ruby-lol-0.9.19.1 spec/lol/match_summary_spec.rb
ruby-lol-0.9.19 spec/lol/match_summary_spec.rb
ruby-lol-0.9.18 spec/lol/match_summary_spec.rb
ruby-lol-0.9.17 spec/lol/match_summary_spec.rb
ruby-lol-0.9.16 spec/lol/match_summary_spec.rb
ruby-lol-0.9.15 spec/lol/match_summary_spec.rb
ruby-lol-0.9.14 spec/lol/match_summary_spec.rb
ruby-lol-0.9.13 spec/lol/match_summary_spec.rb
ruby-lol-0.9.12 spec/lol/match_summary_spec.rb