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

Version Path
redlander-0.6.2 spec/integration/memory_leak_spec.rb
redlander-0.6.1 spec/integration/memory_leak_spec.rb
redlander-0.6.0 spec/integration/memory_leak_spec.rb
redlander-0.5.3 spec/integration/memory_leak_spec.rb
redlander-0.5.2 spec/integration/memory_leak_spec.rb
redlander-0.5.1 spec/integration/memory_leak_spec.rb
redlander-0.5.0 spec/integration/memory_leak_spec.rb
redlander-0.4.0 spec/integration/memory_leak_spec.rb
redlander-0.3.6 spec/integration/memory_leak_spec.rb
redlander-0.3.5 spec/integration/memory_leak_spec.rb
redlander-0.3.3 spec/integration/memory_leak_spec.rb
redlander-0.3.2 spec/integration/memory_leak_spec.rb
redlander-0.3.1 spec/integration/memory_leak_spec.rb