Sha256: 6cfa80a6703adfa684e7fa5788eb2fe12daee4033861bd1bedbc5e6cd5d00fc8

Contents?: true

Size: 426 Bytes

Versions: 4

Compression:

Stored size: 426 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Relation::Variable, '#update' do
  subject { object.update { [2] } }

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

  it { should be_instance_of(described_class) }

  it { should_not be_materialized }

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
axiom-memory-adapter-0.2.1 spec/unit/axiom/relation/variable/update_spec.rb
axiom-memory-adapter-0.2.0 spec/unit/axiom/relation/variable/update_spec.rb
axiom-memory-adapter-0.0.3 spec/unit/axiom/relation/variable/update_spec.rb
axiom-memory-adapter-0.0.2 spec/unit/axiom/relation/variable/update_spec.rb