Sha256: 679de4587c12c2227186cefdff08aeb3f604a0c17998bfed7fc3ebccd634d6e1
Contents?: true
Size: 1.17 KB
Versions: 2
Compression:
Stored size: 1.17 KB
Contents
# encoding: utf-8 require 'spec_helper' describe Axiom::Adapter::Arango::Gateway, '#materialize' do subject { object.materialize } let(:header) { mock('Header') } let(:directions) { mock('Directions') } let(:adapter) { stub.as_null_object } let(:relation) { mock('Relation', :header => header, :directions => directions, :materialized? => false) } let!(:object) { described_class.new(adapter, relation) } let(:materialized) { mock('Materialized') } before do Axiom::Relation::Materialized.stub!(:new).and_return(materialized) Axiom::Relation.stub!(:new).and_return(stub.as_null_object) end it { should equal(materialized) } it 'initializes the materialized relation with the header, tuples and directions' do Axiom::Relation::Materialized.should_receive(:new).with(header, [], directions) subject end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
axiom-arango-adapter-0.0.2 | spec/unit/axiom/adapter/arango/gateway/materialize_spec.rb |
axiom-arango-adapter-0.0.1 | spec/unit/axiom/adapter/arango/gateway/materialize_spec.rb |