Sha256: dcbd33499dad94879b1e5b3ac9b50e61c4c68606e6e34f5f92997bd413ea9e0b

Contents?: true

Size: 452 Bytes

Versions: 6

Compression:

Stored size: 452 Bytes

Contents

require 'spec_helper'

RSpec.describe PortalConnectors::MakerClient do
  let(:client) { PortalConnectors::MakerClient.new }

  describe "#fetch_stocks", vcr: true do
    context "server response with success status" do
      it "returns stocks" do
        json_stock, ok = client.fetch_stocks
        expect(ok).to be_truthy
        expect(json_stock["sfox"]).to be_present
        expect(json_stock["ocbc"]).to be_present
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
portal-connectors-0.58.39xc spec/lib/portal-connectors/maker_client_spec.rb
portal-connectors-0.58.39xb spec/lib/portal-connectors/maker_client_spec.rb
portal-connectors-0.58.39xa spec/lib/portal-connectors/maker_client_spec.rb
portal-connectors-0.58.39fj spec/lib/portal-connectors/maker_client_spec.rb
portal-connectors-0.58.39fg spec/lib/portal-connectors/maker_client_spec.rb
portal-connectors-0.58.38xn spec/lib/portal-connectors/maker_client_spec.rb