test/table_test.rb in rails_db-1.4.0 vs test/table_test.rb in rails_db-1.4.1
- old
+ new
@@ -6,11 +6,11 @@
clean_db
@users_table = RailsDb::Table.new('users')
end
test 'columns' do
- assert_equal @users_table.column_names, ["id", "name", "age", "salary", "bio", "created_at", "updated_at", "account_id", "dob", "active"]
+ assert_equal @users_table.column_names, ["id", "name", "age", "salary", "bio", "created_at", "updated_at", "account_id", "dob", "active", "type"]
end
test 'to_csv' do
User.create(name: 'igor')
assert_not_equal @users_table.to_csv, ''
@@ -47,6 +47,6 @@
klass = @users_table.as_model
assert_equal 'igor', klass.first.name
end
-end
\ No newline at end of file
+end