Sha256: bd636ecf3bbc313ca4480aca7439c5e81f2857bf8d23f90b6def413a2b890bd2

Contents?: true

Size: 398 Bytes

Versions: 2

Compression:

Stored size: 398 Bytes

Contents

require 'spec_helper.rb'

module Larrow
  module Qingcloud
    describe Base do
      it 'param_by' do
        expect(Base.param_by %w(a b c), 
               key: 'somevalue'
              ).to eq(:'bases.1' => 'a',
                      :'bases.2' => 'b',
                      :'bases.3' => 'c',
                      :key       => 'somevalue'
                     )
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
larrow-qingcloud-0.0.2 spec/base_spec.rb
larrow-qingcloud-0.0.1 spec/base_spec.rb