Sha256: 43734f5a1ad14e9625b6edd843de016a6e12ef60b5fc387de2ec3cef9ba16fab

Contents?: true

Size: 661 Bytes

Versions: 4

Compression:

Stored size: 661 Bytes

Contents

require 'spec_helper'

describe Xcal::Parktronic::ApiClient do

  let(:api_http_client){ Xcal::Parktronic::ApiClient.new(endpoint: 'http://api.mock', access_token: 'access_token') }
  let(:api_invalid_client){ Xcal::Parktronic::ApiClient.new(endpoint: 'http://api.mock') }

  context 'metrics route' do

    describe '#get_value_groups' do
      it 'should return value_groups for metric' do
        value_groups = nil
        expect { value_groups = api_http_client.get_metric(7).get_value_groups }.not_to raise_error
        expect(value_groups.value_groups.size).to eql(5)
        expect(value_groups.group_types.size).to eql(2)
      end
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
xcal-parktronic-1.3.0 spec/lib/xcal/parktronic/routes/nested/value_groups_spec.rb
xcal-parktronic-1.2.0 spec/lib/xcal/parktronic/routes/nested/value_groups_spec.rb
xcal-parktronic-1.1.1 spec/lib/xcal/parktronic/routes/nested/value_groups_spec.rb
xcal-parktronic-1.0.2 spec/lib/xcal/parktronic/routes/nested/value_groups_spec.rb