Permalink
Browse files

Update character_class_spec.rb

Use a Regexp compatible with Ruby1.8.
This would solve nathansobo#32.
  • Loading branch information...
1 parent 5ecfa5e commit c6fd111bbbe73bd2b0555575000786d4da3f7458 @boutil boutil committed Jun 19, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/compiler/character_class_spec.rb
@@ -86,7 +86,7 @@ module ModFoo
end
describe "a character class with a negated POSIX bracket expression" do
- testing_expression "[[:^space:]]"
+ testing_expression "[^[:space:]]"
it "matches a character outside the negated class" do
parse('a').should_not be_nil
end

0 comments on commit c6fd111

Please sign in to comment.