diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/arel/nodes/equality_spec.rb | 4 | ||||
-rw-r--r-- | spec/arel/nodes/or_spec.rb | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/spec/arel/nodes/equality_spec.rb b/spec/arel/nodes/equality_spec.rb index d9edc352f3..81eea4d482 100644 --- a/spec/arel/nodes/equality_spec.rb +++ b/spec/arel/nodes/equality_spec.rb @@ -34,8 +34,8 @@ module Arel left = attr.eq(10) right = attr.eq(11) node = left.or right - check node.left.should == left - check node.right.should == right + check node.expr.left.should == left + check node.expr.right.should == right end end diff --git a/spec/arel/nodes/or_spec.rb b/spec/arel/nodes/or_spec.rb index e855b92453..88484ff4f7 100644 --- a/spec/arel/nodes/or_spec.rb +++ b/spec/arel/nodes/or_spec.rb @@ -7,12 +7,12 @@ module Arel left = attr.eq(10) right = attr.eq(11) node = left.or right - check node.left.should == left - check node.right.should == right + check node.expr.left.should == left + check node.expr.right.should == right oror = node.or(right) - check oror.left == node - check oror.right == right + check oror.expr.left == node + check oror.expr.right == right end end end |