Sha256: f4389c904729029d3cd5a10a7828cdea1462419b4ca494778e3a204472afb0cc
Contents?: true
Size: 624 Bytes
Versions: 3
Compression:
Stored size: 624 Bytes
Contents
# encoding: utf-8 require 'spec_helper' require 'veritas/relation/gateway' describe Relation::Gateway, '#drop' do subject { object.drop(args) } let(:adapter) { mock('Adapter') } let(:relation) { mock('Relation', :drop => 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#drop' do relation.should_receive(:drop).with(args) subject end end
Version data entries
3 entries across 3 versions & 1 rubygems