Sha256: 01f2803b7e80454f741d9a3ecdcd7fbee2d7abf2e68a96527e0c55a1a4979488

Contents?: true

Size: 324 Bytes

Versions: 2

Compression:

Stored size: 324 Bytes

Contents

require 'babelyoda/string'

describe "string" do
  it "should escape double-quotes" do
    a = '"Starts with quotes", \"these quotes should not be escaped again\", "ends with quotes"'
    a.escape_double_quotes.should == '\"Starts with quotes\", \"these quotes should not be escaped again\", \"ends with quotes\"'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
babelyoda-2.2.0 spec/lib/babelyoda/string_spec.rb
babelyoda-2.1.20 spec/lib/babelyoda/string_spec.rb