Permalink
Browse files

+ Autotest is now clever enough to figure out where the files are

You might have to do a touch .rspec in the root of the project if it doesn't manage.
  • Loading branch information...
kschiess committed Dec 29, 2010
1 parent 91a609e commit d96bccb2fe3f7190b3c28f7076c6f748be37d552
View
@@ -10,16 +10,14 @@ GEM
flexmock (0.8.11)
json (1.4.6)
rdoc (2.4.3)
- rspec (2.0.1)
- rspec-core (~> 2.0.1)
- rspec-expectations (~> 2.0.1)
- rspec-mocks (~> 2.0.1)
- rspec-core (2.0.1)
- rspec-expectations (2.0.1)
- diff-lcs (>= 1.1.2)
- rspec-mocks (2.0.1)
- rspec-core (~> 2.0.1)
- rspec-expectations (~> 2.0.1)
+ rspec (2.3.0)
+ rspec-core (~> 2.3.0)
+ rspec-expectations (~> 2.3.0)
+ rspec-mocks (~> 2.3.0)
+ rspec-core (2.3.1)
+ rspec-expectations (2.3.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.3.0)
sdoc (0.2.20)
json (>= 1.1.3)
rdoc (= 2.4.3)
View
@@ -1,17 +0,0 @@
-require 'autotest/rspec2'
-
-class Autotest::Rspec2 < Autotest
- def setup_rspec_project_mappings
- add_mapping(%r%^spec/.*_spec\.rb$%) { |filename, _|
- filename
- }
- add_mapping(%r%^lib/(.*)\.rb$%) { |_, m|
- ["spec/unit/#{m[1]}_spec.rb"]
- }
- add_mapping(%r%^spec/(spec_helper|shared/.*)\.rb$%) {
- files_matching %r%^spec/.*_spec\.rb$%
- }
- end
-end
-
-Autotest.add_discovery { "rspec2" }
View
@@ -42,12 +42,13 @@ def check(xml)
# string "verified". If the transformation ends on a string, then the
# document was 'valid'.
#
- t = Parslet::Transform.new
- t.rule(
- o: {name: simple(:tag)},
- c: {name: simple(:tag)},
- i: simple(:t)
- ) { 'verified' }
+ t = Parslet::Transform.new do
+ rule(
+ o: {name: simple(:tag)},
+ c: {name: simple(:tag)},
+ i: simple(:t)
+ ) { 'verified' }
+ end
t.apply(r)
end
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit d96bccb

Please sign in to comment.