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

added spec for save-file for multiple -i ranges

This commit is contained in:
John Mair 2013-01-12 22:12:21 +01:00
parent 21b5337307
commit 0ebc315732

View file

@ -42,6 +42,13 @@ describe "save-file" do
@t.eval "save-file -i 1..2 --to #{@path}"
File.read(@path).should == ":or_nostrils\n:sucking_up_all_the_oxygen\n"
end
it 'should save multi-ranged input expressions' do
@t.eval ':or_nostrils', ':sucking_up_all_the_oxygen', ':or_whatever',
':baby_ducks', ':cannot_escape'
@t.eval "save-file -i 1..2 -i 4..5 --to #{@path}"
File.read(@path).should == ":or_nostrils\n:sucking_up_all_the_oxygen\n:baby_ducks\n:cannot_escape\n"
end
end
describe "saving methods" do