spec/mongo/grid/file/chunk_spec.rb in mongo-2.15.0.alpha vs spec/mongo/grid/file/chunk_spec.rb in mongo-2.15.0
- old
+ new
@@ -1,5 +1,8 @@
+# frozen_string_literal: true
+# encoding: utf-8
+
require 'spec_helper'
require 'stringio'
describe Mongo::Grid::File::Chunk do
@@ -55,11 +58,11 @@
let(:data_size) do
Mongo::Grid::File::Chunk::DEFAULT_SIZE * 3
end
let(:raw_data) do
- 'testing'
+ +'testing'
end
let(:data) do
BSON::Binary.new(raw_data)
end
@@ -148,11 +151,11 @@
describe '.split' do
context 'when the data is smaller than the default size' do
let(:raw_data) do
- 'testing'
+ +'testing'
end
let(:data) do
BSON::Binary.new(raw_data)
end
@@ -183,18 +186,18 @@
let(:data_size) do
Mongo::Grid::File::Chunk::DEFAULT_SIZE * 3
end
let(:raw_data) do
- 'testing'
+ +'testing'
end
let(:data) do
BSON::Binary.new(raw_data)
end
let(:assembled) do
- full_data = ''
+ full_data = +''
chunks.each do |chunk|
full_data << chunk.data.data
end
full_data
end