Sha256: 60d9f28976bd0724bea72bb71e5d24507fd8c9040c8cef437c85d7b9442db116

Contents?: true

Size: 174 Bytes

Versions: 15

Compression:

Stored size: 174 Bytes

Contents

require 'babelyoda/string'

describe "string" do
  it "should escape double-quotes" do
    a = 'some "key"'
    a.escape_double_quotes.should == "some \\\"key\\\""
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
babelyoda-2.1.19 spec/lib/babelyoda/string_spec.rb
babelyoda-2.1.18 spec/lib/babelyoda/string_spec.rb
babelyoda-2.1.17 spec/lib/babelyoda/string_spec.rb
babelyoda-2.1.16 spec/lib/babelyoda/string_spec.rb
babelyoda-2.1.15 spec/lib/babelyoda/string_spec.rb
babelyoda-2.1.14 spec/lib/babelyoda/string_spec.rb
babelyoda-2.1.13 spec/lib/babelyoda/string_spec.rb
babelyoda-2.1.12 spec/lib/babelyoda/string_spec.rb
babelyoda-2.1.11 spec/lib/babelyoda/string_spec.rb
babelyoda-2.1.10 spec/lib/babelyoda/string_spec.rb
babelyoda-2.1.9 spec/lib/babelyoda/string_spec.rb
babelyoda-2.1.8 spec/lib/babelyoda/string_spec.rb
babelyoda-2.1.7 spec/lib/babelyoda/string_spec.rb
babelyoda-2.1.6 spec/lib/babelyoda/string_spec.rb
babelyoda-2.1.5 spec/lib/babelyoda/string_spec.rb