Sha256: 0b66bbcc786bfde451d017e255603b756772266dd8016b590ddfcb18eb5143f4
Contents?: true
Size: 630 Bytes
Versions: 1
Compression:
Stored size: 630 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.1 | spec/unit/axiom/relation/proxy/hash_spec.rb |