Sha256: d23894c910f3ccb96cd6c34e137e6b1b03e4cd7b7a12daed6e8f9df91333afdf
Contents?: true
Size: 711 Bytes
Versions: 4
Compression:
Stored size: 711 Bytes
Contents
# frozen_string_literal: true require_relative "../helper" module Arel module Nodes class GroupingTest < Arel::Spec it "should create Equality nodes" do grouping = Grouping.new(Nodes.build_quoted("foo")) _(grouping.eq("foo").to_sql).must_be_like "('foo') = 'foo'" end describe "equality" do it "is equal with equal ivars" do array = [Grouping.new("foo"), Grouping.new("foo")] assert_equal 1, array.uniq.size end it "is not equal with different ivars" do array = [Grouping.new("foo"), Grouping.new("bar")] assert_equal 2, array.uniq.size end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems