Sha256: dc6aaade18c626178e95e8a11ee823e836325338808585530c0de24444fc3d63
Contents?: true
Size: 580 Bytes
Versions: 1
Compression:
Stored size: 580 Bytes
Contents
# encoding: utf-8 require 'spec_helper' require File.expand_path('../fixtures/classes', __FILE__) describe Function::Predicate, '#call' do subject { object.call(tuple) } let(:header) { Relation::Header.coerce([ [ :id, Integer ] ]) } let(:tuple) { Tuple.new(header, [ 1 ]) } let(:object) { described_class.new(header[:id], 1) } it 'sends the left and right value to self.class.call' do response = mock('#call response') described_class.should_receive(:call).with(1, 1).and_return(response) should equal(response) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.1.0 | spec/unit/axiom/function/predicate/call_spec.rb |