Files
pit/test/pit_note.rb
2010-08-14 22:13:09 -07:00

26 lines
526 B
Ruby

module Pit
module Note
def should_not_segfault
`#{@pit} p -c test`
`#{@pit} t -c test`
(1..12).each do |i|
`#{@pit} n -c note#{i}`
end
(1..6).each do |i|
`#{@pit} n -d #{i}`
end
`#{@pit} n -c note13`
`#{@pit} l`.should.match /created note 13/m
end
def should_handle_all_notes
`#{@pit} p -c test`
`#{@pit} t -c test`
(1..128).each do |n|
`#{@pit} n -c note#{n}`
`#{@pit} n -e #{n} xxx`
end
end
end
end