]> git.wincent.com - walrat.git/blobdiff - spec/additions/proc_spec.rb
Don't shadow "proc" method
[walrat.git] / spec / additions / proc_spec.rb
index 5270575d478c9bd1ccde3a4ab051baa6fd55bc92..d43a7b96e2b7a09e2e17a545bc95fdffc7a86759 100755 (executable)
@@ -5,8 +5,8 @@ require 'spec_helper'
 
 describe 'proc additions' do
   it 'responds to "to_parseable", "parse" and "memoizing_parse"' do
 
 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
   end
 end