Sha256: bbd0e9d8919b70459c3fd310a19873ab27090a4e5a8599e27b214d5b46c58d1a

Contents?: true

Size: 652 Bytes

Versions: 6

Compression:

Stored size: 652 Bytes

Contents

require "spec_helper"
require "lol"

include Lol

describe RunePage 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 "#slots" do
    let(:fixture) { load_fixture("summoner-runes", "v1.3", "get") }
    let(:slots) { fixture["30743211"]["pages"].first["slots"] }

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ruby-lol-0.9.12 spec/lol/rune_page_spec.rb
ruby-lol-0.9.11 spec/lol/rune_page_spec.rb
ruby-lol-0.9.10 spec/lol/rune_page_spec.rb
ruby-lol-0.9.9 spec/lol/rune_page_spec.rb
ruby-lol-0.9.8 spec/lol/rune_page_spec.rb
ruby-lol-0.9.7 spec/lol/rune_page_spec.rb