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.6 test/cases/database_statements_test.rb
radiant-0.8.2 vendor/rails/activerecord/test/cases/database_statements_test.rb
radiant-0.9.0.rc2 vendor/rails/activerecord/test/cases/database_statements_test.rb
webroar-0.3.1 src/admin_panel/vendor/rails/activerecord/test/cases/database_statements_test.rb
webroar-0.3.0 src/admin_panel/vendor/rails/activerecord/test/cases/database_statements_test.rb
usher-0.7.0 spec/rails2_3/vendor/rails/vendor/rails/activerecord/pkg/activerecord-2.3.3/test/cases/database_statements_test.rb
usher-0.7.0 spec/rails2_3/vendor/rails/vendor/rails/activerecord/test/cases/database_statements_test.rb
usher-0.7.0 spec/rails2_2/vendor/rails/vendor/rails/activerecord/pkg/activerecord-2.2.2/test/cases/database_statements_test.rb
usher-0.7.0 spec/rails2_2/vendor/rails/vendor/rails/activerecord/test/cases/database_statements_test.rb
simply_stated-0.0.5 vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/database_statements_test.rb
simply_stated-0.0.4 vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/database_statements_test.rb
factorylabs-castronaut-0.7.5 vendor/activerecord/test/cases/database_statements_test.rb
ginst-2009.12.8 vendor/rails/activerecord/test/cases/database_statements_test.rb
activerecord-2.3.5 test/cases/database_statements_test.rb
ginst-2009.11.24 vendor/rails/activerecord/test/cases/database_statements_test.rb
ginst-2009.11.23 vendor/rails/activerecord/test/cases/database_statements_test.rb
ginst-2.0.1 vendor/rails/activerecord/test/cases/database_statements_test.rb
ginst-2.0.0 vendor/rails/activerecord/test/cases/database_statements_test.rb
gemstreamer-1.2.0 spec/assets/testapp/vendor/rails/activerecord/test/cases/database_statements_test.rb
gemstreamer-1.1.1 spec/assets/testapp/vendor/rails/activerecord/test/cases/database_statements_test.rb