Sha256: 3c650fdef99e283b8e60c995bfa378a4e046ea7e71153c4d31c534f58fbf9bd1
Contents?: true
Size: 615 Bytes
Versions: 2
Compression:
Stored size: 615 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Axiom::Adapter::Arango::Gateway, '#project' do subject { object.project(args) } let(:adapter) { mock('Adapter') } let(:relation) { mock('Relation', :project => response) } let(:response) { mock('New Relation', :kind_of? => true) } let!(:object) { described_class.new(adapter, relation) } let(:args) { stub } it_should_behave_like 'a unary relation method' it 'forwards the arguments to relation#project' do relation.should_receive(:project).with(args) subject end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
axiom-arango-adapter-0.0.2 | spec/unit/axiom/adapter/arango/gateway/project_spec.rb |
axiom-arango-adapter-0.0.1 | spec/unit/axiom/adapter/arango/gateway/project_spec.rb |