Mercurial > hg > soundsoftware-site
diff test/unit/time_entry_activity_test.rb @ 523:0b6c82dead28 luisf
Merge from branch "cannam"
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Mon, 25 Jul 2011 14:23:37 +0100 |
parents | cbce1fd3b1b7 |
children | cbb26bc654de |
line wrap: on
line diff
--- a/test/unit/time_entry_activity_test.rb Mon Mar 28 18:17:06 2011 +0100 +++ b/test/unit/time_entry_activity_test.rb Mon Jul 25 14:23:37 2011 +0100 @@ -15,7 +15,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -require File.dirname(__FILE__) + '/../test_helper' +require File.expand_path('../../test_helper', __FILE__) class TimeEntryActivityTest < ActiveSupport::TestCase fixtures :enumerations, :time_entries @@ -23,10 +23,10 @@ def test_should_be_an_enumeration assert TimeEntryActivity.ancestors.include?(Enumeration) end - + def test_objects_count assert_equal 3, TimeEntryActivity.find_by_name("Design").objects_count - assert_equal 1, TimeEntryActivity.find_by_name("Development").objects_count + assert_equal 2, TimeEntryActivity.find_by_name("Development").objects_count end def test_option_name