Sha256: aa26f9f0470e1582db0d910ae7b3e90f3fe0648b8e49535e938aec2c522c1c34

Contents?: true

Size: 909 Bytes

Versions: 2

Compression:

Stored size: 909 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

2 entries across 2 versions & 1 rubygems

Version Path
ibm_db-3.0.5-x86-mingw32 test/cases/relation/where_test2.rb
ibm_db-3.0.5 test/cases/relation/where_test2.rb