projects
/
depot.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Done testing
[depot.git]
/
vendor
/
rails
/
activerecord
/
test
/
cases
/
database_statements_test.rb
1
require
"cases/helper"
2
3
class
DatabaseStatementsTest
<
ActiveRecord
::TestCase
4
def
setup
5
@connection
=
ActiveRecord
::Base
.
connection
6
end
7
8
def
test_insert_should_return_the_inserted_id
9
id
=
@connection
.
insert
(
"INSERT INTO accounts (firm_id,credit_limit) VALUES (42,5000)"
)
10
assert_not_nil id
11
end
12
end