Sha256: 14c4880c96b0fb1d71d05a27c9d72b9925bd8ad7011359d494169eff8b42e47e
Contents?: true
Size: 495 Bytes
Versions: 6
Compression:
Stored size: 495 Bytes
Contents
require 'spec_helper' module Arel describe Where do before do @relation = Table.new(:users) @predicate = @relation[:id].eq(1) end describe '#initialize' do it "manufactures nested where relations if multiple predicates are provided" do another_predicate = @relation[:name].lt(2) Where.new(@relation, @predicate, another_predicate). \ should == Where.new(Where.new(@relation, another_predicate), @predicate) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems