Sha256: 93c732536dabfa1d24f6814448ee84e206de2534f19993af5e3d03a4d64f5d84
Contents?: true
Size: 578 Bytes
Versions: 2
Compression:
Stored size: 578 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Axiom::Adapter::Arango::Gateway, '#respond_to?' do subject { object.respond_to?(method) } let(:relation) { mock('Relation', :header => stub) } let(:object) { described_class.new(stub, relation) } context 'with an unknown method' do let(:method) { :unknown } it { should be(false) } end context 'with a known method' do let(:method) { :each } it { should be(true) } end context 'with a known method in the relation' do let(:method) { :header } it { should be(true) } end end
Version data entries
2 entries across 2 versions & 1 rubygems