Sha256: 2776ff67e94069271a522e86d4816608116b3ebdc1859cb89b59d34fce4ae199

Contents?: true

Size: 196 Bytes

Versions: 8

Compression:

Stored size: 196 Bytes

Contents

# frozen_string_literal: true

RSpec.describe Basquiat::Json do
  it "returns an empty hash if it can't parse the payload" do
    expect(Basquiat::Json.decode('Idaho Potato')).to eq({})
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
basquiat-1.6.0 spec/lib/support/json_spec.rb
basquiat-1.5.2 spec/lib/support/json_spec.rb
basquiat-1.5.1 spec/lib/support/json_spec.rb
basquiat-1.5.0 spec/lib/support/json_spec.rb
basquiat-1.4.0 spec/lib/support/json_spec.rb
basquiat-1.3.6 spec/lib/support/json_spec.rb
basquiat-1.3.5 spec/lib/support/json_spec.rb
basquiat-1.3.4 spec/lib/support/json_spec.rb