Sha256: 5396c2fb2bf31f18eca6338ef3d96dd2054ebb853f1cc1695f548b4ee97c8f48

Contents?: true

Size: 746 Bytes

Versions: 32

Compression:

Stored size: 746 Bytes

Contents

require "spec_helper"
require "lol"

include Lol

describe RankedStatisticsSummary do
  it_behaves_like 'Lol model' do
    let(:valid_attributes) { { summoner_id: 1 } }
  end

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

  describe 'champions attribute' do
    it_behaves_like 'collection attribute' do
      let(:attribute) { 'champions' }
      let(:attribute_class) { ChampionStatisticsSummary }
    end
  end

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

Version data entries

32 entries across 32 versions & 1 rubygems

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