Sha256: 9577e4f6bcdb78e34497565b292ba4a00cddb9eb8d59fd2738c1d0428f7b2e26

Contents?: true

Size: 764 Bytes

Versions: 3

Compression:

Stored size: 764 Bytes

Contents

require "spec_helper"
require "lol"

include Lol

describe PlayerStatistic do
  it_behaves_like 'Lol model' do
    let(:valid_attributes) { { wins: 1 } }
  end

  %w(losses modify_date_str player_stat_summary_type wins).each do |attribute|
    describe "#{attribute} attribute" do
      it_behaves_like 'plain attribute' do
        let(:attribute) { attribute }
        let(:attribute_value) { 'asd' }
      end
    end
  end

  describe 'aggregated_stats attribute' do
    it_behaves_like 'collection attribute' do
      let(:attribute) { 'aggregated_stats' }
      let(:attribute_class) { AggregatedStatistic }
    end
  end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-lol-0.9.1 spec/lol/player_statistic_spec.rb
ruby-lol-0.0.7 spec/lol/player_statistic_spec.rb
ruby-lol-0.0.6 spec/lol/player_statistic_spec.rb