Sha256: eb62af38fccaf649edf8c1e771095e959348cde2a1bd2eba3c52d1fd993e9aa2

Contents?: true

Size: 388 Bytes

Versions: 9

Compression:

Stored size: 388 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe 'ApiAuth::Helpers' do
  it 'should strip the new line character on a Base64 encoding' do
    expect(ApiAuth.b64_encode('some string')).not_to match(/\n/)
  end

  it "should properly upcase a hash's keys" do
    hsh = { 'JoE' => 'rOOLz' }
    expect(ApiAuth.capitalize_keys(hsh)['JOE']).to eq('rOOLz')
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
api-auth-2.4.1 spec/helpers_spec.rb
api-auth-2.4.0 spec/helpers_spec.rb
api-auth-2.3.1 spec/helpers_spec.rb
api-auth-2.3.0 spec/helpers_spec.rb
api-auth-2.2.1 spec/helpers_spec.rb
api-auth-2.2.0 spec/helpers_spec.rb
api-auth-2.1.0 spec/helpers_spec.rb
api-auth-2.0.1 spec/helpers_spec.rb
api-auth-2.0.0 spec/helpers_spec.rb