1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

adding a weird test case

This commit is contained in:
Aaron Patterson 2013-08-06 20:58:27 +09:00
parent fd4e178c7e
commit 904bfad00d
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,5 @@
# encoding: utf-8
require "cases/helper"
require 'active_support/concurrency/latch'
require 'models/post'
@ -582,6 +584,11 @@ class BasicsTest < ActiveRecord::TestCase
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 file

@ -781,6 +781,7 @@ ActiveRecord::Schema.define do
end
create_table :weirds, :force => true do |t|
t.string 'a$b'
t.string 'なまえ'
t.string 'from'
end