spec/mongo/grid/file/chunk_spec.rb in mongo-2.1.0.beta vs spec/mongo/grid/file/chunk_spec.rb in mongo-2.1.0.rc0
- old
+ new
@@ -8,12 +8,12 @@
let(:file_id) do
BSON::ObjectId.new
end
- let(:metadata) do
- Mongo::Grid::File::Metadata.new(:files_id => file_id)
+ let(:file_info) do
+ Mongo::Grid::File::Info.new(:files_id => file_id)
end
describe '#==' do
let(:chunk) do
@@ -70,11 +70,11 @@
before do
(1..data_size).each{ |i| raw_data << '1' }
end
let(:chunks) do
- described_class.split(raw_data, metadata)
+ described_class.split(raw_data, file_info)
end
it 'returns the chunks assembled into the raw data' do
expect(assembled).to eq(raw_data)
end
@@ -155,11 +155,11 @@
let(:data) do
BSON::Binary.new(raw_data)
end
let(:chunks) do
- described_class.split(raw_data, metadata)
+ described_class.split(raw_data, file_info)
end
let(:chunk) do
chunks.first
end
@@ -202,10 +202,10 @@
before do
(1..data_size).each{ |i| raw_data << '1' }
end
let(:chunks) do
- described_class.split(raw_data, metadata)
+ described_class.split(raw_data, file_info)
end
it 'returns the correct number of chunks' do
expect(chunks.size).to eq(4)
end