Sha256: fb7af01016064fa55504f85fdcb4b900f43492ba84edd3be499d8d013b9da552
Contents?: true
Size: 474 Bytes
Versions: 3
Compression:
Stored size: 474 Bytes
Contents
require 'spec_helper' describe AQL::Buffer, '.utf8_encode' do let(:object) { described_class } unless defined?(Encoding) before do pending "No support for encodings under #{Devtools.rvm}" end end subject { object.utf8_encode(input) } let(:input) { mock('Input') } let(:output) { mock('Output') } it 'should modify input encoding' do input.should_receive(:encode).with(Encoding::UTF_8).and_return(output) should be(output) end end
Version data entries
3 entries across 3 versions & 1 rubygems