Sha256: 4547e3eb22f4cbcc50a5adef3116a266c2475b78a19c76396c372fee67b5db8d
Contents?: true
Size: 771 Bytes
Versions: 2
Compression:
Stored size: 771 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Relation::Variable, '.new' do subject { object.new(relation) } let(:object) { described_class } let(:header) { [[:id, Integer]] } let(:body) { [[1]] } context 'with a materialized relation' do let(:relation) { Relation.new(header, body) } it { should be_instance_of(described_class::Materialized) } its(:header) { should == header } it { should == body } it { should be_materialized } end context 'with a non-materialized relation' do let(:relation) { Relation::Base.new(:users, header, body) } it { should be_instance_of(described_class) } its(:header) { should == header } it { should == body } it { should_not be_materialized } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.2.0 | spec/unit/axiom/relation/variable/class_methods/new_spec.rb |
axiom-0.1.1 | spec/unit/axiom/relation/variable/class_methods/new_spec.rb |