Sha256: 00312be6ad58374b4336fe8191f4287ff3239912695cef44f3c1ff4151ae1460

Contents?: true

Size: 475 Bytes

Versions: 137

Compression:

Stored size: 475 Bytes

Contents

require 'helper'

module Arel
  describe 'activerecord compatibility' do
    describe 'select manager' do
      it 'provides wheres' do
        table   = Table.new :users
        manager = Arel::SelectManager.new Table.engine
        manager.where table[:id].eq 1
        manager.where table[:name].eq 'Aaron'

        manager.wheres.map { |x|
          x.value
        }.join(', ').must_equal "\"users\".\"id\" = 1, \"users\".\"name\" = 'Aaron'"
      end
    end
  end
end

Version data entries

137 entries across 119 versions & 15 rubygems

Version Path
dirty_history-0.6.2 dirty_history/ruby/1.9.1/gems/arel-2.2.1/test/test_activerecord_compat.rb
dirty_history-0.6.1 dirty_history/ruby/1.9.1/gems/arel-2.2.1/test/test_activerecord_compat.rb
initforthe-cookies-0.0.1 vendor/bundle/gems/arel-3.0.2/test/test_activerecord_compat.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/test/test_activerecord_compat.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/test/test_activerecord_compat.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/test/test_activerecord_compat.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/test/test_activerecord_compat.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/test/test_activerecord_compat.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/test/test_activerecord_compat.rb
rails-uploader-0.0.4 vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/test/test_activerecord_compat.rb
dirty_history-0.6.0 dirty_history/ruby/1.9.1/gems/arel-2.2.1/test/test_activerecord_compat.rb
challah-0.6.1 vendor/bundle/gems/arel-3.0.0/test/test_activerecord_compat.rb
challah-0.6.1 vendor/bundle/gems/arel-3.0.2/test/test_activerecord_compat.rb
dirty_history-0.5.4 dirty_history/ruby/1.9.1/gems/arel-2.2.1/test/test_activerecord_compat.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/test/test_activerecord_compat.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/test/test_activerecord_compat.rb
rails-uploader-0.0.1 vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/test/test_activerecord_compat.rb
challah-0.6.0 vendor/bundle/gems/arel-3.0.0/test/test_activerecord_compat.rb
challah-0.6.0 vendor/bundle/gems/arel-3.0.2/test/test_activerecord_compat.rb
challah-0.5.4 vendor/bundle/gems/arel-3.0.0/test/test_activerecord_compat.rb