diff options
Diffstat (limited to 'spec/ruby/language/regexp/encoding_spec.rb')
-rw-r--r-- | spec/ruby/language/regexp/encoding_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/language/regexp/encoding_spec.rb b/spec/ruby/language/regexp/encoding_spec.rb index 2db09fdda8..8e2a294b95 100644 --- a/spec/ruby/language/regexp/encoding_spec.rb +++ b/spec/ruby/language/regexp/encoding_spec.rb @@ -121,11 +121,11 @@ describe "Regexps with encoding modifiers" do make_regexp = -> str { /#{str}/ } r = make_regexp.call("été".force_encoding(Encoding::UTF_8)) - r.fixed_encoding?.should == true + r.should.fixed_encoding? r.encoding.should == Encoding::UTF_8 r = make_regexp.call("abc".force_encoding(Encoding::UTF_8)) - r.fixed_encoding?.should == false + r.should_not.fixed_encoding? r.encoding.should == Encoding::US_ASCII end end |