Sha256: 39a7543cdc4d342f20a317fdd6f84ecd45b69ce7bb8267504f1dc5cf28f54a83

Contents?: true

Size: 408 Bytes

Versions: 20

Compression:

Stored size: 408 Bytes

Contents

# encoding: utf-8
require 'spec_helper'

describe Encoders::Base64Strict do
  context '#encode' do
    it 'encodes string' do
      encoder = Encoders::Base64Strict.new
      expect(encoder.encode('string')).to eq 'c3RyaW5n'
    end
  end

  context '#decode' do
    it 'decodes string' do
      encoder = Encoders::Base64Strict.new
      expect(encoder.decode( 'c3RyaW5n')).to eq 'string'
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
test_server-0.5.2 spec/encoders/base64_strict_spec.rb
test_server-0.5.1 spec/encoders/base64_strict_spec.rb
test_server-0.5.0 spec/encoders/base64_strict_spec.rb
test_server-0.4.1 spec/encoders/base64_strict_spec.rb
test_server-0.4.0 spec/encoders/base64_strict_spec.rb
test_server-0.3.7 spec/encoders/base64_strict_spec.rb
test_server-0.3.6 spec/encoders/base64_strict_spec.rb
test_server-0.3.5 spec/encoders/base64_strict_spec.rb
test_server-0.3.4 spec/encoders/base64_strict_spec.rb
test_server-0.3.2 spec/encoders/base64_strict_spec.rb
test_server-0.3.1 spec/encoders/base64_strict_spec.rb
test_server-0.2.4 spec/encoders/base64_strict_spec.rb
test_server-0.2.3 spec/encoders/base64_strict_spec.rb
test_server-0.2.2 spec/encoders/base64_strict_spec.rb
test_server-0.2.1 spec/encoders/base64_strict_spec.rb
test_server-0.2.0 spec/encoders/base64_strict_spec.rb
test_server-0.1.2 spec/encoders/base64_strict_spec.rb
test_server-0.1.1 spec/encoders/base64_strict_spec.rb
test_server-0.1.0 spec/encoders/base64_strict_spec.rb
test_server-0.0.11 spec/encoders/base64_strict_spec.rb