Sha256: 1c4df08d965dd5048598df79bc01054617490e7801ada9c4eaf66fc2e16c1064

Contents?: true

Size: 464 Bytes

Versions: 3

Compression:

Stored size: 464 Bytes

Contents

# frozen_string_literal: true

require_relative '../../lib/csv_decision'

describe CSVDecision::Decision do
  it 'decision for table with no functions and first_match: true' do
    data = <<~DATA
      IN :input, OUT :output, IN: input1
      input0,    output0,     input1
      input0,    output1,
    DATA

    table = CSVDecision.parse(data)

    decision = CSVDecision::Decision.new(table: table)

    expect(decision).to be_a(CSVDecision::Decision)
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
csv_decision2-0.5.1 spec/csv_decision/decision_spec.rb
csv_decision-0.5.1 spec/csv_decision/decision_spec.rb
csv_decision-0.5.0 spec/csv_decision/decision_spec.rb