Sha256: 202de1f8d8217e913141ae19e29ecf4bcc6e2d9f6daae266dc5f50f6d0806a5c

Contents?: true

Size: 452 Bytes

Versions: 2

Compression:

Stored size: 452 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Relation::Variable::Materialized, '#replace' do
  subject { object.replace(other) }

  let(:object)   { described_class.new(relation) }
  let(:relation) { Relation.new(header, [[1]])   }
  let(:other)    { [[2]]                         }
  let(:header)   { [[:id, Integer]]              }

  it { should be_instance_of(described_class) }

  it { should be_materialized }

  it { should == [[2]] }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
axiom-0.2.0 spec/unit/axiom/relation/variable/materialized/replace_spec.rb
axiom-0.1.1 spec/unit/axiom/relation/variable/materialized/replace_spec.rb