At some point, around 1.9 I think, `proc` became a shorthand for
`Proc.new`; we shouldn't be shadowing it in this way.
describe 'proc additions' do
it 'responds to "to_parseable", "parse" and "memoizing_parse"' do
- proc = lambda { |string, options| 'foo' }.to_parseable
- expect(proc.parse('bar')).to eq('foo')
- expect(proc.memoizing_parse('bar')).to eq('foo')
+ fn = lambda { |string, options| 'foo' }.to_parseable
+ expect(fn.parse('bar')).to eq('foo')
+ expect(fn.memoizing_parse('bar')).to eq('foo')
end
end