Sha256: 27e27a38864db54cd22668ffec315be5de323697cc4566b0d431373cbc541964
Contents?: true
Size: 436 Bytes
Versions: 14
Compression:
Stored size: 436 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper.rb' module ConditionsTests class DayOfMonthTest < ActiveSupport::TestCase def test_modifier_names end def test_usage search = User.new_search search.conditions.dom_of_created_at_gt = "1" assert_equal({:conditions => ["(strftime('%d', \"users\".\"created_at\") * 1) > ?", 1], :limit => 25}, search.sanitize) search.all end end end
Version data entries
14 entries across 14 versions & 2 rubygems