Sha256: e2b9a4bca35c0705baf601e0f2530962749ff4c3eb6a90523fb522554346cdd2

Contents?: true

Size: 270 Bytes

Versions: 19

Compression:

Stored size: 270 Bytes

Contents

require 'spec_helper'

describe 'Yaml dump' do
  it 'dumps strings with slashes' do
    hash = { "extensions" => { "path_info" => "/api/v1/users/1/repos/1" } }
    expect(Psych.dump(hash)).to eq(
'---
extensions:
  path_info: "/api/v1/users/1/repos/1"
'
    )
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
lurker-1.0.0 spec/lurker/yaml_spec.rb
lurker-0.6.12 spec/lurker/yaml_spec.rb
lurker-0.6.11 spec/lurker/yaml_spec.rb
lurker-0.6.10 spec/lurker/yaml_spec.rb
lurker-0.6.9 spec/lurker/yaml_spec.rb
lurker-0.6.8 spec/lurker/yaml_spec.rb
lurker-0.6.7 spec/lurker/yaml_spec.rb
lurker-0.6.6 spec/lurker/yaml_spec.rb
lurker-0.6.5 spec/lurker/yaml_spec.rb
lurker-0.6.4 spec/lurker/yaml_spec.rb
lurker-0.6.3 spec/lurker/yaml_spec.rb
lurker-0.6.2 spec/lurker/yaml_spec.rb
lurker-0.6.1 spec/lurker/yaml_spec.rb
lurker-0.5.7 spec/lurker/yaml_spec.rb
lurker-0.6.0 spec/lurker/yaml_spec.rb
lurker-0.5.6 spec/lurker/yaml_spec.rb
lurker-0.5.5 spec/lurker/yaml_spec.rb
lurker-0.5.4 spec/lurker/yaml_spec.rb
lurker-0.5.3 spec/lurker/yaml_spec.rb