Sha256: 033752b6ba3be60d87da9bf83fd7629d6f1b9a0a930f9b67aa1f1cd5856aa914
Contents?: true
Size: 523 Bytes
Versions: 2
Compression:
Stored size: 523 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Relation, '.coerce' do subject { object.coerce(header, argument) } let(:header) { [ [ :id, Integer ] ] } let(:object) { described_class } let(:relation) { Relation.new(header, [ [ 1 ] ]) } context 'when the argument is a Relation' do let(:argument) { relation } it { should equal(relation) } end context 'when the argument is an Array' do let(:argument) { [ [ 1 ] ] } it { should eql(relation) } end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
axiom-0.1.0 | spec/unit/axiom/relation/class_methods/coerce_spec.rb |
veritas-0.0.7 | spec/unit/veritas/relation/class_methods/coerce_spec.rb |