Sha256: d9c2c886be5db20b9ed804a7961ca3f52a2fe919df2b3f0ac6dea96083b775f4
Contents?: true
Size: 756 Bytes
Versions: 7
Compression:
Stored size: 756 Bytes
Contents
require 'spec_helper' describe MWO::Client do let(:host) { 'http://static.mwomercs.com' } subject(:client) { described_class.new(host: host) } describe "#items_url" do it "returns the url for items api" do expect(client.items_url).to eq("http://static.mwomercs.com/api/items/list/full.json") end end describe "#omniparts_url" do it "returns the url for items api" do expect(client.omniparts_url).to eq("http://static.mwomercs.com/api/omniparts/list/full.json") end end describe "#mech_ids" do it "returns the url for items api" do expect(client.mech_ids_url).to eq("http://static.mwomercs.com/api/mechs/list/dict.json") end end it "raises and error when the api cannot be accessed" end
Version data entries
7 entries across 7 versions & 1 rubygems