spec/unit/veritas/logic/predicate/greater_than/inverse_spec.rb in veritas-0.0.2 vs spec/unit/veritas/logic/predicate/greater_than/inverse_spec.rb in veritas-0.0.3

- old
+ new

@@ -1,12 +1,11 @@ require 'spec_helper' -describe 'Veritas::Logic::Predicate::GreaterThan#inverse' do +describe Logic::Predicate::GreaterThan, '#inverse' do subject { object.inverse } - let(:klass) { Logic::Predicate::GreaterThan } - let(:attribute) { Attribute::Integer.new(:id) } - let(:object) { klass.new(attribute, 1) } + let(:attribute) { Attribute::Integer.new(:id) } + let(:object) { described_class.new(attribute, 1) } it_should_behave_like 'an idempotent method' it { should be_kind_of(Logic::Predicate::LessThanOrEqualTo) }