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