Sha256: 1309a8353f8874a65bde3d5cd536f985a36f4a7408a61ded1ce1f87955a5d5e4
Contents?: true
Size: 701 Bytes
Versions: 2
Compression:
Stored size: 701 Bytes
Contents
require 'spec_helper' module Alf module Relvar describe Virtual, "insert" do let(:rv) { Virtual.new(expr) } let(:expr) { Algebra.named_operand(:suppliers, connection) } let(:tuples) { Relation.coerce(:id => 1) } let(:connection){ self } def insert(name, tuples) @seen = [name, tuples.to_relation] end def relvar(name) Relvar::Base.new(name) end subject{ rv.insert(tuples) } it 'delegates the call to the connection' do subject @seen.should eq([:suppliers, tuples]) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alf-core-0.15.0 | spec/unit/alf-relvar/virtual/test_insert.rb |
alf-core-0.14.0 | spec/unit/alf-relvar/virtual/test_insert.rb |