Skip to content
Browse files

Fixed regular expression to unmatch 1.9, 2.x

  • Loading branch information...
1 parent 4ebd34c commit 0873b63aa2f8a4bfbb41f46c81118034a9d85e68 @cjheath committed Jun 15, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/spec_helper.rb
View
2 spec/spec_helper.rb
@@ -63,7 +63,7 @@ def parse(input, options = {})
def parse_multibyte(input, options = {})
require 'active_support/all'
- if RUBY_VERSION !~ /^1.9/ && 'NONE' == $KCODE then $KCODE = 'UTF8' end
+ if RUBY_VERSION !~ /^(1\.9|2\.0)/ && 'NONE' == $KCODE then $KCODE = 'UTF8' end
# rspec 1.3 used to do something similar (set it to 'u') that we need
# for activerecord multibyte wrapper to kick in (1.8 only? @todo)

0 comments on commit 0873b63

Please sign in to comment.
Something went wrong with that request. Please try again.