Sha256: 9cc90611411a66d0f76ee3b6be3132526e7fbf396357e11cd72d49f37cb5edb9

Contents?: true

Size: 395 Bytes

Versions: 3

Compression:

Stored size: 395 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

3 entries across 3 versions & 1 rubygems

Version Path
api-auth-1.5.0 spec/helpers_spec.rb
api-auth-1.4.1 spec/helpers_spec.rb
api-auth-1.4.0 spec/helpers_spec.rb