Sha256: 067b38f15bb50d664c7e62d216bfd6fe5f3a2d2028b7e273e8792616e4ef1b31

Contents?: true

Size: 364 Bytes

Versions: 4

Compression:

Stored size: 364 Bytes

Contents

require 'spec_helper'

module Polytrix
  describe Validations do
    describe '#coerce' do
      it 'accepts an array when built via Result' do
        Polytrix::Result.new(
          validations: [
            { validated_by: 'max', result: 'passed' },
            { validated_by: 'polytrix', result: 'skipped' }
          ]
        )
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
polytrix-0.1.2 spec/polytrix/validations_spec.rb
polytrix-0.1.1 spec/polytrix/validations_spec.rb
polytrix-0.1.0 spec/polytrix/validations_spec.rb
polytrix-0.1.0.pre spec/polytrix/validations_spec.rb