Permalink
Browse files

Merge pull request #93 from tadd/fix_rspec_deprecation_warning

fix DEPRECATION warning from RSpec.
  • Loading branch information...
2 parents 313b944 + 89b4298 commit b666a8acd4dffe3796321e207f37fbf9d22d529a @kschiess committed Oct 23, 2013
Showing with 5 additions and 5 deletions.
  1. +2 −2 spec/acceptance/regression_spec.rb
  2. +3 −3 spec/parslet/convenience_spec.rb
View
4 spec/acceptance/regression_spec.rb
@@ -87,7 +87,7 @@ class ParensParser < Parslet::Parser
lambda {
instance.parse('((()))')
instance.parse('(((())))')
- }.should_not raise_error(Parslet::ParseFailed)
+ }.should_not raise_error
end
end
context "expression '(())'" do
@@ -311,4 +311,4 @@ def di(s)
))
end
end
-end
+end
View
6 spec/parslet/convenience_spec.rb
@@ -18,10 +18,10 @@ class FooParser < Parslet::Parser
parser.should_receive(:puts)
end
it 'should exist' do
- lambda { parser.parse_with_debug('anything') }.should_not raise_error(NoMethodError)
+ lambda { parser.parse_with_debug('anything') }.should_not raise_error
end
it 'should catch ParseFailed exceptions' do
- lambda { parser.parse_with_debug('bar') }.should_not raise_error(Parslet::ParseFailed)
+ lambda { parser.parse_with_debug('bar') }.should_not raise_error
end
it 'should parse correct input like #parse' do
lambda { parser.parse_with_debug('foo') }.should_not raise_error
@@ -45,4 +45,4 @@ class FooParser < Parslet::Parser
match['bar'].parse_with_debug('a')
end
end
-end
+end

0 comments on commit b666a8a

Please sign in to comment.