Sha256: 18f9f4cb3eaa51be9e87e85d36e5405023a5bf8dc698ff10cd2206b2abb84c9c
Contents?: true
Size: 680 Bytes
Versions: 1
Compression:
Stored size: 680 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.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-lol-0.9.7 | spec/lol/mastery_page_spec.rb |