Sha256: fc7d878f1ec0086d7803475ae5c2236cfe6f3fdc4f4f2778a71938c9bfac7c19

Contents?: true

Size: 636 Bytes

Versions: 3

Compression:

Stored size: 636 Bytes

Contents

# encoding: utf-8

require 'spec_helper'
require 'veritas/relation/gateway'

describe Relation::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

3 entries across 3 versions & 1 rubygems

Version Path
veritas-do-adapter-0.0.7 spec/unit/veritas/relation/gateway/project_spec.rb
veritas-do-adapter-0.0.6 spec/unit/veritas/relation/gateway/project_spec.rb
veritas-do-adapter-0.0.5 spec/unit/veritas/relation/gateway/project_spec.rb