public function testUpdateWithNewProperties()
{
$db = $this->_db;
$this->skipIf($db::enabled('schema'));
$new = Galleries::create(array('name' => 'Flowers', 'active' => true));
$expected = array('name' => 'Flowers', 'active' => true);
$result = $new->data();
$this->assertEqual($expected, $result);
$new->foo = 'bar';
$expected = array('name' => 'Flowers', 'active' => true, 'foo' => 'bar');
$result = $new->data();
$this->assertEqual($expected, $result);
$this->assertTrue($new->save());
$updated = Galleries::find('first', array('conditions' => Galleries::key($new)));
$expected = 'bar';
$result = $updated->foo;
$this->assertEqual($expected, $result);
}