Permalink
Browse files

A couple of test for issue #16

  • Loading branch information...
1 parent afb8378 commit 0ed754c7e8d3e484c05c7b88bbdb0f1e71eb0e3e @DAddYE committed Feb 15, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 test/test_mini_record.rb
View
@@ -200,6 +200,13 @@ class Foo < ActiveRecord::Base
assert_empty Foo.queries
assert_equal %w[id name], Foo.db_columns
assert_equal %w[id name], Foo.schema_columns
+
+ foo = Foo.create(:name => 'test')
+ assert_empty Foo.first.name
+
+ foo.update_attribute(:name, 'foo')
+
+ assert_equal 'foo', Foo.first.name
end
describe 'relation #belongs_to' do

0 comments on commit 0ed754c

Please sign in to comment.