Sha256: 4ffb4046351e75dc8c583b70c7c1c281340c923eeb992f0654b566bf5aff26ee

Contents?: true

Size: 695 Bytes

Versions: 13

Compression:

Stored size: 695 Bytes

Contents

require "spec_helper"
require "lol"

include Lol

describe MasteryPage do
  it_behaves_like 'Lol model' do
    let(:valid_attributes) { { id: 1 } }
  end

  %w(id name current).each do |attribute|
    it_behaves_like "plain attribute" do
      let(:attribute) { attribute }
      let(:attribute_value) { "asd" }
    end
  end

  describe "#masteries" do
    let(:fixture) { load_fixture("summoner-masteries", SummonerRequest.api_version) }
    let(:masteries) { fixture["30743211"]["pages"].first["masteries"] }

    subject { MasteryPage.new fixture["30743211"]["pages"].first }

    it "is populated by talents" do
      expect(subject.masteries.size).to eq(masteries.size)
    end
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ruby-lol-0.12.2 spec/lol/mastery_page_spec.rb
ruby-lol-0.12.1 spec/lol/mastery_page_spec.rb
ruby-lol-0.12.0 spec/lol/mastery_page_spec.rb
ruby-lol-0.11.6 spec/lol/mastery_page_spec.rb
ruby-lol-0.11.5 spec/lol/mastery_page_spec.rb
ruby-lol-0.11.4 spec/lol/mastery_page_spec.rb
ruby-lol-0.11.3 spec/lol/mastery_page_spec.rb
ruby-lol-0.11.2 spec/lol/mastery_page_spec.rb
ruby-lol-0.11.1 spec/lol/mastery_page_spec.rb
ruby-lol-0.11.0 spec/lol/mastery_page_spec.rb
ruby-lol-0.10.0 spec/lol/mastery_page_spec.rb
ruby-lol-0.9.19.1 spec/lol/mastery_page_spec.rb
ruby-lol-0.9.19 spec/lol/mastery_page_spec.rb