File tree Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ module Arel # :nodoc: all
4
4
module Nodes
5
5
class Equality < Arel ::Nodes ::Binary
6
6
def operator ; :== end
7
- alias :operand1 :left
8
- alias :operand2 :right
9
7
10
8
def invert
11
9
Arel ::Nodes ::NotEqual . new ( left , right )
Original file line number Diff line number Diff line change @@ -15,22 +15,6 @@ module Nodes
15
15
end
16
16
end
17
17
18
- describe "operand1" do
19
- it "should equal left" do
20
- attr = Table . new ( :users ) [ :id ]
21
- left = attr . eq ( 10 )
22
- _ ( left . left ) . must_equal left . operand1
23
- end
24
- end
25
-
26
- describe "operand2" do
27
- it "should equal right" do
28
- attr = Table . new ( :users ) [ :id ]
29
- left = attr . eq ( 10 )
30
- _ ( left . right ) . must_equal left . operand2
31
- end
32
- end
33
-
34
18
describe "to_sql" do
35
19
it "takes an engine" do
36
20
engine = FakeRecord ::Base . new
You can’t perform that action at this time.
0 commit comments