Sha256: b754259307e70d8202812bbe12e067f77f7e8853c2a224f38a56d7ed06c25c52

Contents?: true

Size: 873 Bytes

Versions: 8

Compression:

Stored size: 873 Bytes

Contents

require "cases/helper"
require "models/author"
require "models/binary"
require "models/cake_designer"
require "models/category"
require "models/chef"
require "models/comment"
require "models/edge"
require "models/essay"
require "models/post"
require "models/price_estimate"
require "models/topic"
require "models/treasure"
require "models/vertex"

module ActiveRecord
  class WhereTest < ActiveRecord::TestCase
    fixtures :posts, :edges, :authors, :binaries, :essays, :author_addresses
	
  unless current_adapter?(:IBM_DBAdapter)
	def test_where_with_boolean_for_string_column
      #count = Post.where(:title => false).count
	  count = Post.where(:title => 0.0).count
      assert_equal 0, count
    end
   end
	
=begin	
	def test_where_with_integer_for_binary_column
      count = Binary.where(:data => 0).count
      assert_equal 0, count
    end
=end
	    
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ibm_db-3.0.4-x86-mingw32 test/cases/relation/where_test2.rb
ibm_db-3.0.4 test/cases/relation/where_test2.rb
ibm_db-3.0.3-x86-mingw32 test/cases/relation/where_test2.rb
ibm_db-3.0.3 test/cases/relation/where_test2.rb
ibm_db-3.0.2-x86-mingw32 test/cases/relation/where_test2.rb
ibm_db-3.0.2 test/cases/relation/where_test2.rb
ibm_db-3.0.1 test/cases/relation/where_test2.rb
ibm_db-3.0.1-x86-mingw32 test/cases/relation/where_test2.rb