Sha256: 40f6eee106fba0716933f622882c939adbcb2bac3dec8b6270715de95a512b31
Contents?: true
Size: 733 Bytes
Versions: 4
Compression:
Stored size: 733 Bytes
Contents
require "spec_helper" require "lol" include Lol describe League do it "inherits from Lol::Model" do expect(League.ancestors[1]).to eq(Model) end context "initialization" do it_behaves_like 'Lol model' do let(:valid_attributes) { { name: 'foo' } } end %w(name tier queue).each do |attribute| describe "#{attribute} attribute" do it_behaves_like 'plain attribute' do let(:attribute) { attribute } let(:attribute_value) { 'asd' } end end end it "fills entries with LeagueEntry objects" do league = League.new(load_fixture("league", "v2.2", "get")["123"]) expect(league.entries.map(&:class).uniq).to eq([LeagueEntry]) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ruby-lol-0.9.6 | spec/lol/league_spec.rb |
ruby-lol-0.9.5 | spec/lol/league_spec.rb |
ruby-lol-0.9.4 | spec/lol/league_spec.rb |
ruby-lol-0.9.3 | spec/lol/league_spec.rb |