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:
parent
45c6492e7e
commit
12cd5507cd
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue