test/specs/patch04_titles_spec.rb
# this effectively makes the tests run in the order defined, which is
# needed in this situattion.
this effectively makes the tests run in the order defined, which is
needed in this situattion.
this effectively makes the tests run in the order defined which is needed in this situattion .
def prompt_for_name_id
    puts '***************************'
    puts 'Enter an unused Patch Title name_id for testing.'
    puts 'Must be one of the following:'
    unused_name_ids = self.class.unused_name_ids
    unused_name_ids.each { |ni| puts "  #{ni}" }
    puts
    print 'which one?: '
    chosen = $stdin.gets.chomp
    until unused_name_ids.include? chosen
      puts 'that one isnt on the list'
      print 'which one?: '
      chosen = $stdin.gets.chomp
    end
    chosen
  end
def prompt_for_name_id puts '***************************' puts 'Enter an unused Patch Title name_id for testing.' puts 'Must be one of the following:' unused_name_ids = self . class . unused_name_ids unused_name_ids . each { | ni | puts "  #{ni}" } puts print 'which one?: ' chosen = $stdin . gets . chomp until unused_name_ids . include? chosen puts 'that one isnt on the list' print 'which one?: ' chosen = $stdin . gets . chomp end chosen end
this effectively makes the tests run in the order defined, which is
needed in this situattion.
this effectively makes the tests run in the order defined which is needed in this situattion .