search for: clienttest

Displaying 1 result from an estimated 1 matches for "clienttest".

Did you mean: client_test
2005 Dec 22
1
How to write unit tests with respect to model callbacks?
...=> self.id).save end def after_update self.project.update_attributes(:name => self.name, :disabled => self.disabled) end def before_destroy self.project.destroy end end and the following test: require File.dirname(__FILE__) + '/../test_helper' class ClientTest < Test::Unit::TestCase fixtures :clients def setup @client = Client.find(1) end def test_create assert_kind_of Client, @client assert_equal 1, @client.id assert_equal clients(:elasto_client).name, @client.name end def test_update assert_equal cl...