Sha256: ffbc7d7505545b1372310f84a9a853736f9f99252987de5e2fffa99973a432e3
Contents?: true
Size: 815 Bytes
Versions: 13
Compression:
Stored size: 815 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 participant_id).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_data = load_fixture("league", LeagueRequest.api_version) league = League.new(league_data[league_data.keys.first].first) expect(league.entries.map(&:class).uniq).to eq([LeagueEntry]) end end end
Version data entries
13 entries across 13 versions & 1 rubygems