Sha256: d1a6f7f9929a86a5fbb559a467090312a7c1634089734935d1fdddb5ab7cd0f6
Contents?: true
Size: 646 Bytes
Versions: 1
Compression:
Stored size: 646 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Relation::Proxy, '#hash' do subject { object.hash } 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 it_should_behave_like 'a hash method' it { should == described_class.hash ^ relation.hash } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.1.0 | spec/unit/axiom/relation/proxy/hash_spec.rb |