Sha256: 2a8ac5ce248a4c73fca3cabff2af39688f060811e6304bcf2e8a10f32e4d1851
Contents?: true
Size: 671 Bytes
Versions: 5
Compression:
Stored size: 671 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 "#talents" do let(:fixture) { load_fixture("summoner-masteries", "v1.3", "get") } let(:talents) { fixture["30743211"]["pages"].first["talents"] } subject { MasteryPage.new fixture["30743211"]["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