File: base64_spec.rb

package info (click to toggle)
ruby-http 0.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 404 kB
  • ctags: 213
  • sloc: ruby: 2,397; makefile: 7
file content (13 lines) | stat: -rw-r--r-- 347 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
require 'spec_helper'

describe Base64 do
  specify { expect(Base64).to respond_to :strict_encode64 }

  describe '.strict_encode64' do
    let(:long_string) { (0...256).map { ('a'..'z').to_a[rand(26)] }.join }

    it 'returns a String without whitespaces' do
      expect(Base64.strict_encode64 long_string).to_not match(/\s/)
    end
  end
end