Return to Snippet

Revision: 5674
at March 25, 2008 03:05 by sou


Updated Code
Autotest.add_hook :initialize do |at|
  # snipplr removes escape-sequence from me!
  # '1' should be a backward reference
  story_files = %r%^([^/.]+)/1%
  at.add_mapping(story_files) do |f, last_matched|
    at.files_matching Regexp.new("#{last_matched}.rb")
  end
end

Revision: 5673
at March 25, 2008 02:56 by sou


Initial Code
Autotest.add_hook :initialize do |at|
  story_files = %r%^([^/.]+)/1%
  at.add_mapping(story_files) do |f, last_matched|
    at.files_matching Regexp.new("#{last_matched}.rb")
  end
end

Initial URL

                                

Initial Description

                                

Initial Title
.autotest for Story

Initial Tags
textmate, ruby

Initial Language
Other