Skip to content

Commit

Permalink
Merge pull request #95 from codeclimate/pb-multibyte
Browse files Browse the repository at this point in the history
Add pending spec for over-escaped multibyte source
  • Loading branch information
pbrisbin committed Feb 2, 2016
2 parents d934f7c + 6ff9f8d commit 5183658
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec/cc/engine/analyzers/ruby/main_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@ module CC::Engine::Analyzers
include AnalyzerSpecHelpers

describe "#run" do
it "handles escaped multibyte characters in regular expressions" do
create_source_file("foo.rb", <<-EORUBY)
class Helper
def self.sub_degrees(str)
str.gsub(/\\d+\\°\\s/, "")
end
end
EORUBY

pending "Potential lexing bug. Ask customer to remove escaping."
run_engine(engine_conf).strip.split("\0")
end

it "prints an issue" do
create_source_file("foo.rb", <<-EORUBY)
describe '#ruby?' do
Expand Down

0 comments on commit 5183658

Please sign in to comment.