Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit d96bccb2fe3f7190b3c28f7076c6f748be37d552 1 parent 91a609e
@kschiess authored
View
18 Gemfile.lock
@@ -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
17 autotest/discover.rb
@@ -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
13 example/simple_xml.rb
@@ -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
View
0  spec/unit/parslet/atom_results_spec.rb → spec/parslet/atom_results_spec.rb
File renamed without changes
View
0  spec/unit/parslet/atoms/base_spec.rb → spec/parslet/atoms/base_spec.rb
File renamed without changes
View
0  spec/unit/parslet/atoms/combinations_spec.rb → spec/parslet/atoms/combinations_spec.rb
File renamed without changes
View
0  spec/unit/parslet/atoms/entity_spec.rb → spec/parslet/atoms/entity_spec.rb
File renamed without changes
View
0  spec/unit/parslet/atoms/named_spec.rb → spec/parslet/atoms/named_spec.rb
File renamed without changes
View
0  spec/unit/parslet/atoms/re_spec.rb → spec/parslet/atoms/re_spec.rb
File renamed without changes
View
0  spec/unit/parslet/atoms_spec.rb → spec/parslet/atoms_spec.rb
File renamed without changes
View
0  spec/unit/parslet/error_tree_spec.rb → spec/parslet/error_tree_spec.rb
File renamed without changes
View
0  spec/unit/parslet/expression/treetop_spec.rb → spec/parslet/expression/treetop_spec.rb
File renamed without changes
View
0  spec/unit/parslet/parser_spec.rb → spec/parslet/parser_spec.rb
File renamed without changes
View
0  spec/unit/parslet/parslet_spec.rb → spec/parslet/parslet_spec.rb
File renamed without changes
View
0  spec/unit/parslet/pattern_spec.rb → spec/parslet/pattern_spec.rb
File renamed without changes
View
0  spec/unit/parslet/transform_spec.rb → spec/parslet/transform_spec.rb
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.