Sha256: 633e25ab7418f78160b9b10bcdfa09b7bcb2668e53f5a2d4b0e1cc05069d2075
Contents?: true
Size: 976 Bytes
Versions: 6
Compression:
Stored size: 976 Bytes
Contents
require "spec_helper" require "lol" include Lol describe Game do it_behaves_like 'Lol model' do let(:valid_attributes) { { game_id: 1 } } end %w(champion_id create_date_str game_id game_mode game_type invalid level map_id spell1 spell2 sub_type team_id).each do |attribute| describe "#{attribute} attribute" do it_behaves_like 'plain attribute' do let(:attribute) { attribute } let(:attribute_value) { 'asd' } end end end describe 'fellow_players attribute' do it_behaves_like 'collection attribute' do let(:attribute) { 'fellow_players' } let(:attribute_class) { Player } end end describe 'statistics attribute' do it_behaves_like 'collection attribute' do let(:attribute) { 'statistics' } let(:attribute_class) { RawStatistic } end end describe 'create_date attribute' do it_behaves_like 'time attribute' do let(:attribute) { 'create_date' } end end end
Version data entries
6 entries across 6 versions & 1 rubygems