Sha256: cc16b2d402441c1679fcf092f4bc6ea941cbcf06c52045979e07ed45cd5bc2c6
Contents?: true
Size: 644 Bytes
Versions: 1
Compression:
Stored size: 644 Bytes
Contents
# encoding: utf-8 require 'spec_helper' require 'axiom/relation/gateway' describe Relation::Gateway, '#rename' do subject { object.rename(args) } let(:adapter) { double('Adapter') } let(:relation) { double('Relation', rename: response) } let(:response) { double('New Relation', :kind_of? => true) } let!(:object) { described_class.new(adapter, relation) } let(:args) { double } it_should_behave_like 'a unary relation method' it 'forwards the arguments to relation#rename' do expect(relation).to receive(:rename).with(args) subject end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-do-adapter-0.2.0 | spec/unit/axiom/relation/gateway/rename_spec.rb |