Sha256: bbe524bfb3f561a5114062714ce8da04fa02ad49a9cf0eb30e11b21ca10053aa
Contents?: true
Size: 625 Bytes
Versions: 1
Compression:
Stored size: 625 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Relation::Proxy, '#method_missing' do subject { object.unknown } let(:object) { described_class.new(relation) } let(:described_class) { Class.new(Relation) } let(:relation) { Relation.new([ [ :id, Integer ] ], body) } let(:body) { [ [ 1 ], [ 2 ] ] } before do described_class.class_eval do include Relation::Proxy def initialize(relation) @relation = relation end end end specify { expect { subject }.to raise_error(NoMethodError) } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.1.0 | spec/unit/axiom/relation/proxy/method_missing_spec.rb |