Sha256: 7ce076b6cbf25cf7d757365db568aaef0ab25bafc8b688608d0362570a5d8539

Contents?: true

Size: 552 Bytes

Versions: 2

Compression:

Stored size: 552 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Axiom::Adapter::Arango::Gateway, '#optimize' do
  subject { object.optimize }

  let(:adapter)  { stub                                   }
  let(:relation) { mock('Relation')                       }
  let(:object)   { described_class.new(adapter, relation) }

  before do
    relation.stub!(:optimize).and_return(relation)
  end

  it_should_behave_like 'a command method'

  it 'forwards the message to relation#optimize' do
    relation.should_receive(:optimize).with(no_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/optimize_spec.rb
axiom-arango-adapter-0.0.1 spec/unit/axiom/adapter/arango/gateway/optimize_spec.rb