Sha256: a326db79aaf8d7f70e09a265e15113d33f25d2d813f77288f2618d285c1fa3e7

Contents?: true

Size: 656 Bytes

Versions: 5

Compression:

Stored size: 656 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(summoner_id name current).each do |attribute|
    it_behaves_like "plain attribute" do
      let(:attribute) { attribute }
      let(:attribute_value) { "asd" }
    end
  end

  describe "#talents" do
    let(:fixture) { load_fixture("summoner-masteries", "v1.1", "get") }
    let(:talents) { fixture["pages"].first["talents"] }

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

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

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruby-lol-0.9.6 spec/lol/mastery_page_spec.rb
ruby-lol-0.9.5 spec/lol/mastery_page_spec.rb
ruby-lol-0.9.4 spec/lol/mastery_page_spec.rb
ruby-lol-0.9.3 spec/lol/mastery_page_spec.rb
ruby-lol-0.9.1 spec/lol/mastery_page_spec.rb