blob: 6acc047cbbf26971c55dbf65b869b7ca9c91a62c (
plain) (
tree)
|
|
require 'spec_helper'
module Arel
module Predicates
describe Polyadic do
before do
@relation1 = Arel::Table.new(:users)
@relation2 = Arel::Table.new(:photos)
@a = @relation1[:id]
@b = @relation2[:user_id]
end
describe '==' do
left = Polyadic.new @a, @b
right = Polyadic.new @b, @a
left.should != right
left.should == right
end
end
end
end
|