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

Version Path
schof-searchlogic-0.0.2 test/modifier_tests/day_of_month_test.rb
searchlogic-1.5.7 test/modifier_tests/day_of_month_test.rb
searchlogic-1.5.4 test/modifier_tests/day_of_month_test.rb
searchlogic-1.6.0 test/modifier_tests/day_of_month_test.rb
searchlogic-1.6.1 test/modifier_tests/day_of_month_test.rb
searchlogic-1.5.8 test/modifier_tests/day_of_month_test.rb
searchlogic-1.5.10 test/modifier_tests/day_of_month_test.rb
searchlogic-1.5.6 test/modifier_tests/day_of_month_test.rb
searchlogic-1.5.9 test/modifier_tests/day_of_month_test.rb
searchlogic-1.6.6 test/modifier_tests/day_of_month_test.rb
searchlogic-1.6.3 test/modifier_tests/day_of_month_test.rb
searchlogic-1.6.4 test/modifier_tests/day_of_month_test.rb
searchlogic-1.6.2 test/modifier_tests/day_of_month_test.rb
searchlogic-1.6.5 test/modifier_tests/day_of_month_test.rb