Permalink
Browse files

Fixed up broken autotest depencies.

  • Loading branch information...
1 parent 3b7b96b commit 6b03bf004eabf8be87f20bd7912662c2560f37c9 @notahat notahat committed Nov 7, 2008
Showing with 3 additions and 1 deletion.
  1. +1 −1 .autotest
  2. +2 −0 spec/spec_helper.rb
View
@@ -2,6 +2,6 @@ Autotest.add_hook :initialize do |at|
at.clear_mappings
at.add_mapping(%r%^spec/(.*)_spec.rb$%) {|filename, _| filename }
- at.add_mapping(%r%^lib/(.*).rb$%) {|_, match| "spec/#{match}_spec.rb" }
+ at.add_mapping(%r%^lib/(.*).rb$%) {|_, match| "spec/#{match[1]}_spec.rb" }
at.add_mapping(%r%^spec/spec_helper.rb$%) { at.files_matching(%r%^spec/(.*)_spec.rb$%) }
end
View
@@ -1,5 +1,7 @@
$LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib'
+require 'test/unit'
require 'spec'
+require 'sham'
Spec::Runner.configure do |config|
config.before(:each) { Sham.reset }

0 comments on commit 6b03bf0

Please sign in to comment.