Sha256: f09a27fb00d964d3b4468281f5d670114826e4818dcf7be79f0cc4d0a18c7e0c

Contents?: true

Size: 530 Bytes

Versions: 44

Compression:

Stored size: 530 Bytes

Contents

describe Dap::Input::InputJSON do
  describe '.read_record' do
    context 'decoding input json' do
      let(:file_object) { double("fake file") }
      let(:input) { described_class.new(['data']) }
      let(:record) { input.read_record }
      it 'parses values starting with a colon (:) as a string' do
        allow(File).to receive(:open).with('data', 'rb').and_return(file_object)
        allow(file_object).to receive(:readline).and_return('{"a": ":b"}')
        expect(record['a']).to eq(":b")
      end
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
dap-1.3.1 spec/dap/input/json_spec.rb
dap-1.3.0 spec/dap/input/json_spec.rb
dap-1.2.9 spec/dap/input/json_spec.rb
dap-1.2.8 spec/dap/input/json_spec.rb
dap-1.2.7 spec/dap/input/json_spec.rb
dap-1.2.6 spec/dap/input/json_spec.rb
dap-1.2.5 spec/dap/input/json_spec.rb
dap-1.2.4 spec/dap/input/json_spec.rb
dap-1.2.3 spec/dap/input/json_spec.rb
dap-1.2.2 spec/dap/input/json_spec.rb
dap-1.2.1 spec/dap/input/json_spec.rb
dap-1.2.0 spec/dap/input/json_spec.rb
dap-1.0.2 spec/dap/input/json_spec.rb
dap-1.0.1 spec/dap/input/json_spec.rb
dap-1.0.0 spec/dap/input/json_spec.rb
dap-0.1.24 spec/dap/input/json_spec.rb
dap-0.1.23 spec/dap/input/json_spec.rb
dap-0.1.22 spec/dap/input/json_spec.rb
dap-0.1.21 spec/dap/input/json_spec.rb
dap-0.1.20 spec/dap/input/json_spec.rb