Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adding a weird test case

  • Loading branch information...
commit 904bfad00d27ddfb33434550ea9201d85a8742ab 1 parent fd4e178
@tenderlove tenderlove authored
View
7 activerecord/test/cases/base_test.rb
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
require "cases/helper"
require 'active_support/concurrency/latch'
require 'models/post'
@@ -582,6 +584,11 @@ def test_readonly_attributes
assert_equal "changed", post.body
end
+ def test_unicode_column_name
+ weird = Weird.create(:なまえ => 'たこ焼き仮面')
+ assert_equal 'たこ焼き仮面', weird.なまえ
+ end
+
def test_non_valid_identifier_column_name
weird = Weird.create('a$b' => 'value')
weird.reload
View
1  activerecord/test/schema/schema.rb
@@ -781,6 +781,7 @@ def create_table(*args, &block)
end
create_table :weirds, :force => true do |t|
t.string 'a$b'
+ t.string 'なまえ'
t.string 'from'
end
Please sign in to comment.
Something went wrong with that request. Please try again.