Sha256: 961691bae289ee4cfee9a80cee213895e75a0266f06ecafbff0e67d142c5f7d2

Contents?: true

Size: 317 Bytes

Versions: 96

Compression:

Stored size: 317 Bytes

Contents

require "cases/helper"

class DatabaseStatementsTest < ActiveRecord::TestCase
  def setup
    @connection = ActiveRecord::Base.connection
  end

  def test_insert_should_return_the_inserted_id
    id = @connection.insert("INSERT INTO accounts (firm_id,credit_limit) VALUES (42,5000)")
    assert_not_nil id
  end
end

Version data entries

96 entries across 93 versions & 18 rubygems

Version Path
activerecord-2.3.18 test/cases/database_statements_test.rb
activerecord_csi-2.3.5.p8 test/cases/database_statements_test.rb
activerecord-2.3.17 test/cases/database_statements_test.rb
activerecord_csi-2.3.5.p7 test/cases/database_statements_test.rb
activerecord_csi-2.3.5.p6 test/cases/database_statements_test.rb
activerecord-2.3.16 test/cases/database_statements_test.rb
activerecord-2.3.15 test/cases/database_statements_test.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/activerecord-2.3.14/test/cases/database_statements_test.rb
vanity-1.7.1 vendor/ruby/1.9.1/gems/activerecord-2.3.12/test/cases/database_statements_test.rb
activerecord-2.3.14 test/cases/database_statements_test.rb
kajam-1.0.3.rc2 vendor/rails/activerecord/test/cases/database_statements_test.rb
activerecord-2.3.12 test/cases/database_statements_test.rb
radiant-1.0.0.rc2 vendor/rails/activerecord/test/cases/database_statements_test.rb
radiant-1.0.0.rc1 vendor/rails/activerecord/test/cases/database_statements_test.rb
webroar-0.5.0 src/admin_panel/vendor/rails/activerecord/test/cases/database_statements_test.rb
activerecord-2.3.11 test/cases/database_statements_test.rb
radiantcms-couchrest_model-0.2.4 vendor/rails/activerecord/test/cases/database_statements_test.rb
radiantcms-couchrest_model-0.2.2 vendor/rails/activerecord/test/cases/database_statements_test.rb
radiantcms-couchrest_model-0.2.1 vendor/rails/activerecord/test/cases/database_statements_test.rb
radiantcms-couchrest_model-0.2 vendor/rails/activerecord/test/cases/database_statements_test.rb