Sha256: 902bbb0337af0a1d38d19c58ce08fa26a08c25bb7b9ea4cb9ea26225af1c0130

Contents?: true

Size: 476 Bytes

Versions: 1

Compression:

Stored size: 476 Bytes

Contents

require 'spec_helper'
module Alf
  module Algebra
    module Operand
      describe Named, "to_cog" do

        let(:operand){ Named.new(:foo, self) }

        subject{ operand.to_cog(12) }

        def cog(plan, expr)
          plan.should eq(12)
          expr.should be(operand)
          [:a_cog, expr.name]
        end

        it 'delegates to the underlying connection when bound' do
          subject.should eq([:a_cog, :foo])
        end

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-algebra/operand/named/test_to_cog.rb