Skip to content

Commit

Permalink
Fix spurious constant warnings. Use correct gherkin error class.
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed Sep 21, 2010
1 parent e7e99ac commit 876f548
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cucumber/feature_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def parse(configuration_filters, tag_counts)
ast.language = parser.i18n_language
ast.file = @path
ast
rescue Gherkin::LexingError, Gherkin::Parser::ParseError => e
rescue Gherkin::Lexer::LexingError, Gherkin::Parser::ParseError => e
e.message.insert(0, "#{@path}: ")
raise e
end
Expand Down
2 changes: 2 additions & 0 deletions lib/cucumber/platform.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
require 'yaml'

module Cucumber
unless defined?(Cucumber::VERSION)
VERSION = '0.9.0'
BINARY = File.expand_path(File.dirname(__FILE__) + '/../../bin/cucumber')
LIBDIR = File.expand_path(File.dirname(__FILE__) + '/../../lib')
Expand All @@ -25,3 +26,4 @@ def file_mode(m) #:nodoc:
end
self.use_full_backtrace = false
end
end

0 comments on commit 876f548

Please sign in to comment.