projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22d15c0
)
Duplicate records raise RecordNotUnique now, not StatementInvalid
author
Tom Hughes
<tom@compton.nu>
Tue, 21 Sep 2010 21:21:55 +0000
(22:21 +0100)
committer
Tom Hughes
<tom@compton.nu>
Mon, 14 Nov 2011 09:42:45 +0000
(09:42 +0000)
test/unit/user_preference_test.rb
patch
|
blob
|
history
diff --git
a/test/unit/user_preference_test.rb
b/test/unit/user_preference_test.rb
index df9e1e9b277ebddcea902703154458c3e7433b3d..d95989a4f50092fce1caac78547d0feb3a1a2420 100644
(file)
--- a/
test/unit/user_preference_test.rb
+++ b/
test/unit/user_preference_test.rb
@@
-20,7
+20,7
@@
class UserPreferenceTest < ActiveSupport::TestCase
newUP.k = up.k
newUP.v = "some other value"
assert_not_equal newUP.v, up.v
- assert_raise (ActiveRecord::
StatementInvalid
) {newUP.save}
+ assert_raise (ActiveRecord::
RecordNotUnique
) {newUP.save}
end
def test_check_valid_length