Sha256: 826ed9290da6f324f58f367f6ba04002c4b2869fd9ecb8b0761509d023f44ccf

Contents?: true

Size: 365 Bytes

Versions: 3

Compression:

Stored size: 365 Bytes

Contents

require 'spec_helper'
require 'memory_profiler'

def Process.rss; `ps -o rss= -p #{Process.pid}`.chomp.to_i; end

describe Ebooks::Model do
  it "does not use a ridiculous amount of memory" do
    report = MemoryUsage.report do
      model = Ebooks::Model.consume(path("data/0xabad1dea.json"))
    end

    expect(report.total_memsize).to be < 1000000000
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
twitter_ebooks-2.2.9 spec/model_spec.rb
twitter_ebooks-2.2.8 spec/model_spec.rb
twitter_ebooks-2.2.7 spec/model_spec.rb