Sha256: 9e3d928299a539b37270b6aab4b1bcc19a5fe6e4df173b2d78a72316783ca978
Contents?: true
Size: 501 Bytes
Versions: 13
Compression:
Stored size: 501 Bytes
Contents
require "spec_helper" describe "memory leak" do context "when calling Model#find twice" do before do @model = Model.new @model.statements.create(statement_attributes) end it "should not occur" do 2.times { @model.statements.first } end end private def statement_attributes { :subject => URI.parse("http://example.com/subject"), :predicate => URI.parse("http://example.com/predicate"), :object => URI.parse("object!") } end end
Version data entries
13 entries across 13 versions & 1 rubygems