mirror of
https://github.com/thewesker/twitter_ebooks.git
synced 2025-12-20 04:11:08 -05:00
15 lines
322 B
Ruby
15 lines
322 B
Ruby
require 'spec_helper'
|
|
require 'memory_profiler'
|
|
|
|
describe Ebooks::Model do
|
|
it "does not use a ridiculous amount of memory" do
|
|
RubyProf.start
|
|
Ebooks::Model.consume(path("data/0xabad1dea.json"))
|
|
result = RubyProf.stop
|
|
|
|
require 'pry'; binding.pry
|
|
|
|
expect(report.total_retained).to be < 100000
|
|
end
|
|
end
|