Sha256: ec265b4176016f8f674d9de6a259e17345877bfce43556ffa2dbc8349db6496a

Contents?: true

Size: 415 Bytes

Versions: 4

Compression:

Stored size: 415 Bytes

Contents

require "spec_helper"
require "lol"

describe Lol::RunesRequest do
  subject { Lol::RunesRequest.new "api_key", "euw" }

  describe "#by_summoner_id" do
    it "returns an Array of DynamicModel" do
      stub_request subject, "runes", "runes/by-summoner/1"
      result = subject.by_summoner_id 1
      expect(result).to be_a Array
      expect(result.map(&:class).uniq).to eq [Lol::DynamicModel]
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruby-lol-1.2.0 spec/lol/runes_request_spec.rb
ruby-lol-1.1.2 spec/lol/runes_request_spec.rb
ruby-lol-1.1.1 spec/lol/runes_request_spec.rb
ruby-lol-1.0.0 spec/lol/runes_request_spec.rb