Sha256: b135c30a9db11b877379bad6bd627ff7d2b98328435a30af7a9673962aa8a859

Contents?: true

Size: 404 Bytes

Versions: 7

Compression:

Stored size: 404 Bytes

Contents

require 'spec_helper'

class UtilUserClass
end

describe UtilUserClass do

  before do
    described_class.extend(MWO::Utils)
  end

  describe ".fetch", vcr: {cassette_name: 'utils_fetch_url'} do
    let(:url) { "http://static.mwomercs.com/api/items/list/full.json"}
    subject {described_class.fetch(url)}

    it "returns a non empty hash" do
      expect(subject).to_not be_empty
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mwo-1.0.0 spec/mwo/utils_spec.rb
mwo-0.1.2 spec/mwo/utils_spec.rb
mwo-0.1.1 spec/mwo/utils_spec.rb
mwo-0.1.0 spec/mwo/utils_spec.rb
mwo-0.0.3 spec/mwo/utils_spec.rb
mwo-0.0.2 spec/mwo/utils_spec.rb
mwo-0.0.1 spec/mwo/utils_spec.rb