spec/unit/axiom/function/predicate/eql_spec.rb in axiom-0.1.1 vs spec/unit/axiom/function/predicate/eql_spec.rb in axiom-0.2.0
- old
+ new
@@ -4,12 +4,13 @@
require File.expand_path('../fixtures/classes', __FILE__)
describe Function::Predicate, '#eql?' do
subject { object.eql?(other) }
- let(:left) { Attribute::Integer.new(:id) }
- let(:right) { 1 }
- let(:object) { described_class.new(left, right) }
+ let(:object) { described_class.new(left, right) }
+ let(:described_class) { Class.new(Function::Predicate) }
+ let(:left) { Attribute::Integer.new(:id) }
+ let(:right) { 1 }
context 'with the same object' do
let(:other) { object }
it { should be(true) }