1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Add a test for accidental fixage [Fixes #261]

This commit is contained in:
Conrad Irwin 2012-01-03 01:47:15 +00:00
parent 45c6492e7e
commit 12cd5507cd

View file

@ -482,6 +482,13 @@ describe Pry::CommandSet do
it 'should be false for commands that can\'' do
@set.valid_command?('def monkey(ape)').should == false
end
it 'should not cause argument interpolation' do
cmd = @set.command('hello')
lambda {
@set.valid_command?('hello #{raise "futz"}')
}.should.not.raise
end
end
describe '.process_line' do