Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MRI out of memory (or segfault) when trying to compare controller response with Fixnum #897

Closed
fdutey opened this issue May 7, 2013 · 2 comments

Comments

@fdutey
Copy link

fdutey commented May 7, 2013

After couple of minutes (around 10), Ruby VM is not able to allocate memory. Sometimes segfault...

My mistake is response.should == 401 instead of response.status.should == 401 but still, I think it shouldn't kill Ruby VM

code:

  it '...' do
    get :index, :line_item_id => @line_item.id, :format => :json

    response.should == 401
  end

gems:

rspec (2.11.0)
rspec-core (2.11.1)
rspec-expectations (2.11.3)
rspec-mocks (2.11.3)
rspec-rails (2.11.0)
shoulda-matchers (1.4.2)
@sdhull
Copy link

sdhull commented Oct 9, 2013

FWIW I don't think the fix in rack is available from RubyGems yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants