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

removed repeated/redundant test from test_command_set.rb

This commit is contained in:
John Mair 2011-11-24 18:38:42 +13:00
parent 18c8ccdecc
commit 54df4bf7bd

View file

@ -285,15 +285,6 @@ describe Pry::CommandSet do
lambda { @set.rename_command('bar', 'love') }.should.raise ArgumentError
end
it 'should be able to rename and run a command' do
run = false
@set.command('foo') { run = true }
@set.rename_command('bar', 'foo')
@set.run_command(@ctx, 'bar')
run.should == true
end
it 'should make old command name inaccessible' do
@set.command('foo') { }
@set.rename_command('bar', 'foo')