spec/unit/veritas/tuple/hash_spec.rb in veritas-0.0.2 vs spec/unit/veritas/tuple/hash_spec.rb in veritas-0.0.3

- old
+ new

@@ -1,14 +1,13 @@ require 'spec_helper' -describe 'Veritas::Tuple#hash' do +describe Tuple, '#hash' do subject { object.hash } - let(:klass) { Tuple } let(:header) { Relation::Header.new([ [ :id, Integer ] ]) } let(:data) { [ 1 ] } - let(:object) { klass.new(header, data) } + let(:object) { described_class.new(header, data) } it_should_behave_like 'a hash method' - it { should == klass.hash ^ header.hash ^ data.hash } + it { should == described_class.hash ^ header.hash ^ data.hash } end