rspec and memory_profiler

This commit is contained in:
Jaiden Mispy 2014-10-14 01:02:08 -07:00
parent 639e200a83
commit d09d968915
7 changed files with 18 additions and 22 deletions

BIN
spec/data/0xabad1dea.model Normal file

Binary file not shown.

8
spec/model_spec.rb Normal file
View file

@ -0,0 +1,8 @@
require 'spec_helper'
require 'objspace'
describe Ebooks::Model do
it "does stuff" do
model = Ebooks::Model.load(path("data/0xabad1dea.model"))
end
end

5
spec/spec_helper.rb Normal file
View file

@ -0,0 +1,5 @@
require 'twitter_ebooks'
def path(relpath)
File.join(File.dirname(__FILE__), relpath)
end