Permalink
Browse files

escape . in regexp

[#925 state:resolved milestone:'Next Release']
  • Loading branch information...
1 parent da2c611 commit 2266a7f15a5bb6467f660a0668d35ec0aabed533 @dchelimsky committed Dec 12, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/autotest/rspec.rb
View
2 lib/autotest/rspec.rb
@@ -3,7 +3,7 @@
Autotest.add_hook :initialize do |at|
at.clear_mappings
# watch out for Ruby bug (1.8.6): %r(/) != /\//
- at.add_mapping(%r%^spec/.*_spec.rb$%) { |filename, _|
+ at.add_mapping(%r%^spec/.*_spec\.rb$%) { |filename, _|
filename
}
at.add_mapping(%r%^lib/(.*)\.rb$%) { |_, m|

0 comments on commit 2266a7f

Please sign in to comment.