Sha256: 31725cffe44df2058be9c3a1f426c62941c98f6d7498c022135e1cd5e0a6d796

Contents?: true

Size: 684 Bytes

Versions: 7

Compression:

Stored size: 684 Bytes

Contents

# frozen_string_literal: true

#
# Copyright (c) 2018-present, Blue Marble Payroll, LLC
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#

require './spec/spec_helper'

describe ::Differential::Parser::Record do
  it 'should initialize correctly' do
    hash = {
      id: '1',
      group_id: '2',
      value: 3,
      data: { id: '1' }
    }

    record = ::Differential::Parser::Record.new(hash)

    expect(record.id).to        eq(hash[:id])
    expect(record.group_id).to  eq(hash[:group_id])
    expect(record.value).to     eq(hash[:value])
    expect(record.data).to      eq(hash[:data])
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
differential-1.1.0 spec/differential/parser/record_spec.rb
differential-1.0.6 spec/differential/parser/record_spec.rb
differential-1.0.5 spec/differential/parser/record_spec.rb
differential-1.0.4 spec/differential/parser/record_spec.rb
differential-1.0.3 spec/differential/parser/record_spec.rb
differential-1.0.2 spec/differential/parser/record_spec.rb
differential-1.0.1 spec/differential/parser/record_spec.rb