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
3mix-castronaut-0.5.0.2 vendor/activerecord/test/cases/database_statements_test.rb
masover-castronaut-0.4.4.4 vendor/activerecord/test/cases/database_statements_test.rb
masover-castronaut-0.4.4.5 vendor/activerecord/test/cases/database_statements_test.rb
masover-castronaut-0.5.0.1 vendor/activerecord/test/cases/database_statements_test.rb
p8-castronaut-0.6.1.1 vendor/activerecord/test/cases/database_statements_test.rb
relevance-castronaut-0.4.1 vendor/activerecord/test/cases/database_statements_test.rb
relevance-castronaut-0.4.2 vendor/activerecord/test/cases/database_statements_test.rb
relevance-castronaut-0.4.3 vendor/activerecord/test/cases/database_statements_test.rb
relevance-castronaut-0.4.4 vendor/activerecord/test/cases/database_statements_test.rb
relevance-castronaut-0.4.5 vendor/activerecord/test/cases/database_statements_test.rb
relevance-castronaut-0.4.6 vendor/activerecord/test/cases/database_statements_test.rb
relevance-castronaut-0.5.0 vendor/activerecord/test/cases/database_statements_test.rb
relevance-castronaut-0.5.1 vendor/activerecord/test/cases/database_statements_test.rb
relevance-castronaut-0.5.2 vendor/activerecord/test/cases/database_statements_test.rb
relevance-castronaut-0.5.3 vendor/activerecord/test/cases/database_statements_test.rb
relevance-castronaut-0.5.4 vendor/activerecord/test/cases/database_statements_test.rb
relevance-castronaut-0.6.0 vendor/activerecord/test/cases/database_statements_test.rb
relevance-castronaut-0.6.1 vendor/activerecord/test/cases/database_statements_test.rb
relevance-castronaut-0.7.4 vendor/activerecord/test/cases/database_statements_test.rb
relevance-castronaut-0.7.5 vendor/activerecord/test/cases/database_statements_test.rb