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

stub.as_null_object sends string interpolation into infinite loop #154

Closed
xaviershay opened this issue Jun 17, 2012 · 0 comments
Closed

Comments

@xaviershay
Copy link
Member

The following code enters an infinite loop on 2.10.1 and also 2.6 (i.e. not a regression).
I ran across this trying to render a view template with a null object, where I had a helper that was formatting a number from the object.

describe 'null objects' do
  it 'allows string interpolation' do
    "%i" % stub.as_null_object
  end
end
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

2 participants