Sha256: 7ab23174d785cdee8c9934840db1e8f9a33a79bb1e978c979f396b36dc88f36c
Contents?: true
Size: 344 Bytes
Versions: 2
Compression:
Stored size: 344 Bytes
Contents
require '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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
api-auth-2.5.1 | spec/helpers_spec.rb |
api-auth-2.5.0 | spec/helpers_spec.rb |