Sha256: 1c9c5726d1fcd957802fc0e2870572b0507188ad542823051dc7ee7f235f66d5

Contents?: true

Size: 403 Bytes

Versions: 34

Compression:

Stored size: 403 Bytes

Contents

require "lol"
require "spec_helper"

include Lol

describe Player do
  it_behaves_like 'Lol model' do
    let(:valid_attributes) { { team_id: 1 } }
  end

  %w(champion_id summoner_id 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
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
ruby-lol-0.12.2 spec/lol/player_spec.rb
ruby-lol-0.12.1 spec/lol/player_spec.rb
ruby-lol-0.12.0 spec/lol/player_spec.rb
ruby-lol-0.11.6 spec/lol/player_spec.rb
ruby-lol-0.11.5 spec/lol/player_spec.rb
ruby-lol-0.11.4 spec/lol/player_spec.rb
ruby-lol-0.11.3 spec/lol/player_spec.rb
ruby-lol-0.11.2 spec/lol/player_spec.rb
ruby-lol-0.11.1 spec/lol/player_spec.rb
ruby-lol-0.11.0 spec/lol/player_spec.rb
ruby-lol-0.10.0 spec/lol/player_spec.rb
ruby-lol-0.9.19.1 spec/lol/player_spec.rb
ruby-lol-0.9.19 spec/lol/player_spec.rb
ruby-lol-0.9.18 spec/lol/player_spec.rb
ruby-lol-0.9.17 spec/lol/player_spec.rb
ruby-lol-0.9.16 spec/lol/player_spec.rb
ruby-lol-0.9.15 spec/lol/player_spec.rb
ruby-lol-0.9.14 spec/lol/player_spec.rb
ruby-lol-0.9.13 spec/lol/player_spec.rb
ruby-lol-0.9.12 spec/lol/player_spec.rb