aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/test/cases/relation/select_test.rb
blob: dec8a6925d541215da6983451853c646b6d328ac (plain) (tree)
1
2
3
4
5
6
7
8
9








                                           
                                     




                                                                   
# frozen_string_literal: true

require "cases/helper"
require "models/post"

module ActiveRecord
  class SelectTest < ActiveRecord::TestCase
    fixtures :posts

    def test_select_with_nil_argument
      expected = Post.select(:title).to_sql
      assert_equal expected, Post.select(nil).select(:title).to_sql
    end
  end
end