Skip to content
This repository
Browse code

adding a weird test case

Conflicts:
	activerecord/test/cases/base_test.rb
  • Loading branch information...
commit aef61b40ab38ba705edd48ab54e1af1eab25c588 1 parent 74fb2a1
Aaron Patterson authored August 06, 2013
7  activerecord/test/cases/base_test.rb
... ...
@@ -1,3 +1,5 @@
  1
+# encoding: utf-8
  2
+
1 3
 require "cases/helper"
2 4
 require 'models/post'
3 5
 require 'models/author'
@@ -587,6 +589,11 @@ def test_attr_readonly_is_class_level_setting
587 589
     assert_deprecated { post._attr_readonly }
588 590
   end
589 591
 
  592
+  def test_unicode_column_name
  593
+    weird = Weird.create(:なまえ => 'たこ焼き仮面')
  594
+    assert_equal 'たこ焼き仮面', weird.なまえ
  595
+  end
  596
+
590 597
   def test_non_valid_identifier_column_name
591 598
     weird = Weird.create('a$b' => 'value')
592 599
     weird.reload
1  activerecord/test/schema/schema.rb
@@ -780,6 +780,7 @@ def create_table(*args, &block)
780 780
   end
781 781
   create_table :weirds, :force => true do |t|
782 782
     t.string 'a$b'
  783
+    t.string 'なまえ'
783 784
     t.string 'from'
784 785
   end
785 786
 

0 notes on commit aef61b4

Please sign in to comment.
Something went wrong with that request. Please try again.