Skip to content

Commit

Permalink
Merge branch 'test-pattern-switch'
Browse files Browse the repository at this point in the history
  • Loading branch information
Takahiro Noda committed Feb 25, 2012
2 parents db711fc + 1b678a5 commit dc5023d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Rakefile
@@ -1,5 +1,5 @@

PKG_REVISION = ".1"
PKG_REVISION = ".2"

$:.unshift "lib" if File.directory? "lib"
require 'rcodetools/xmpfilter'
Expand Down
6 changes: 3 additions & 3 deletions lib/ruby_toggle_file.rb
Expand Up @@ -18,7 +18,7 @@ def ruby_toggle_file(file)
end

LIB_RE = %r!/lib/(.+)\.rb$!
TEST_RE = %r!/test/(.+/)?test_(.+)\.rb$!
TEST_RE = %r!/test/(.+/)?(.+)_test\.rb$!

def test_file(implementation)
if m = LIB_RE.match(implementation)
Expand Down Expand Up @@ -68,8 +68,8 @@ def test_file_30_flat(implementation, basedir, dir, node) # lib/XXX/NODE.rb -> t
exist "#{basedir}test/test_#{node}.rb" if dir
end

def test_file_99_autotest_default(implementation, basedir, dir, node) # lib/XXX/NODE.rb -> test/XXX/test_NODE.rb
"#{basedir}test/#{dir}test_#{node}.rb"
def test_file_99_default(implementation, basedir, dir, node) # lib/XXX/NODE.rb -> test/XXX/test_NODE.rb
"#{basedir}test/#{dir}#{node}_test.rb"
end

def implementation_file_00_rails(test, basedir, dir, node)
Expand Down

0 comments on commit dc5023d

Please sign in to comment.