twitter-status-bot/.gems/gems/http-0.6.2/spec/http/backports/base64_spec.rb

14 lines
347 B
Ruby
Raw Normal View History

2014-09-03 08:49:59 +00:00
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