Sha256: 103d04b48239600c734160d99f32d6c407b2ea572e4fa2e9e082583c855306b2

Contents?: true

Size: 396 Bytes

Versions: 5

Compression:

Stored size: 396 Bytes

Contents

describe 'Base64' do

  describe 'UIImage' do

    it 'should convert image data (PNG) to base64' do
      'test'.uiimage.nsdata.to_base64.should == 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAHgCAIAAADrGJBNAAAAAXNSR0IArs4c6QAAABxpRE9UAAAAAgAAAAAAAADwAAAAKAAAAPAAAADwAAAAS9r5uVEAAAAXSURBVEgNYrhrxMAwikfDYDQNDMk0AAAAAP//6TQa9AAAABVJREFUY7hrxMAwikfDYDQNDMk0AACNnfwwqs717AAAAABJRU5ErkJggg=='
    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sugarcube-3.5.0 spec/ios/base64_spec.rb
sugarcube-3.4.2 spec/ios/base64_spec.rb
sugarcube-3.4.1 spec/ios/base64_spec.rb
sugarcube-3.4.0 spec/ios/base64_spec.rb
sugarcube-3.3.7 spec/ios/base64_spec.rb