Sha256: 45836d95e768dad98381ec747da0fa7aa51d926df896cc0712a0c25070269400
Contents?: true
Size: 601 Bytes
Versions: 1
Compression:
Stored size: 601 Bytes
Contents
# encoding: utf-8 require 'spec_helper' require 'axiom/relation/gateway' describe Relation::Gateway, '#respond_to?' do subject { object.respond_to?(method) } let(:relation) { double('Relation', header: double) } let(:object) { described_class.new(double, 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-do-adapter-0.2.0 | spec/unit/axiom/relation/gateway/respond_to_spec.rb |