Sha256: 1c9a53e0b92e7d7d5f89b70c625c067f8ba29a0e41a302537c25e6bb9db78f9c

Contents?: true

Size: 408 Bytes

Versions: 26

Compression:

Stored size: 408 Bytes

Contents

describe Moneta::Api::Types::Profile::Client do
  let(:params) do
    {
      unitid: 1
    }
  end
  let(:attributes_hash) { described_class.build(params).to_hash }

  subject { attributes_hash }

  its(['attribute']) { is_expected.to be_a Array }

  describe 'attribute' do

    subject { attributes_hash['attribute'] }

    its(:first) { is_expected.to eq({ 'key' => 'UNITID', 'value' => 1 }) }
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
moneta-api-2.1.0 spec/lib/moneta/api/types/profile/client_spec.rb
moneta-api-2.0.0 spec/lib/moneta/api/types/profile/client_spec.rb
moneta-api-2.0.0.rc2 spec/lib/moneta/api/types/profile/client_spec.rb
moneta-api-2.0.0.rc1 spec/lib/moneta/api/types/profile/client_spec.rb
moneta-api-1.13.0 spec/lib/moneta/api/types/profile/client_spec.rb
moneta-api-1.12.8 spec/lib/moneta/api/types/profile/client_spec.rb
moneta-api-1.12.7 spec/lib/moneta/api/types/profile/client_spec.rb
moneta-api-1.12.6 spec/lib/moneta/api/types/profile/client_spec.rb
moneta-api-1.12.5 spec/lib/moneta/api/types/profile/client_spec.rb
moneta-api-1.12.4 spec/lib/moneta/api/types/profile/client_spec.rb
moneta-api-1.12.3 spec/lib/moneta/api/types/profile/client_spec.rb
moneta-api-1.12.2 spec/lib/moneta/api/types/profile/client_spec.rb
moneta-api-1.12.1 spec/lib/moneta/api/types/profile/client_spec.rb
moneta-api-1.12.0 spec/lib/moneta/api/types/profile/client_spec.rb
moneta-api-1.11.0 spec/lib/moneta/api/types/profile/client_spec.rb
moneta-api-1.10.0 spec/lib/moneta/api/types/profile/client_spec.rb
moneta-api-1.9.0 spec/lib/moneta/api/types/profile/client_spec.rb
moneta-api-1.8.0 spec/lib/moneta/api/types/profile/client_spec.rb
moneta-api-1.7.0 spec/lib/moneta/api/types/profile/client_spec.rb
moneta-api-1.6.0 spec/lib/moneta/api/types/profile/client_spec.rb