spec/string_spec.rb in bindata-1.4.5 vs spec/string_spec.rb in bindata-1.5.0

- old
+ new

@@ -267,10 +267,10 @@ super.force_encoding('UTF-8') end end subject { UTF8String.new } - let(:binary_str) { "\xC3\x85\xC3\x84\xC3\x96" } + let(:binary_str) { binary("\xC3\x85\xC3\x84\xC3\x96") } let(:utf8_str) { binary_str.dup.force_encoding('UTF-8') } it "stores assigned values as binary" do subject.assign(utf8_str) subject.to_binary_s.should == binary_str