From 3db77a86a96b10333fcccf85b0c53ce57d4f4de8 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 30 Apr 2010 10:06:51 +0000 Subject: Fixes some parameters in functional tests. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3701 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/issues_controller_test.rb | 2 +- test/functional/issues_controller_transaction_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test/functional') diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index edf07dde6..f3624de21 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -775,7 +775,7 @@ class IssuesControllerTest < ActionController::TestCase put :update, :id => 1, :notes => '2.5 hours added', - :time_entry => { :hours => '2.5', :comments => 'test_put_update_with_note_and_spent_time', :activity_id => TimeEntryActivity.first } + :time_entry => { :hours => '2.5', :comments => 'test_put_update_with_note_and_spent_time', :activity_id => TimeEntryActivity.first.id } end assert_redirected_to :action => 'show', :id => '1' diff --git a/test/functional/issues_controller_transaction_test.rb b/test/functional/issues_controller_transaction_test.rb index bac466170..dbd085bf5 100644 --- a/test/functional/issues_controller_transaction_test.rb +++ b/test/functional/issues_controller_transaction_test.rb @@ -70,7 +70,7 @@ class IssuesControllerTransactionTest < ActionController::TestCase }, :notes => '', :attachments => {'1' => {'file' => uploaded_test_file('testfile.txt', 'text/plain')}}, - :time_entry => { :hours => '2.5', :comments => '', :activity_id => TimeEntryActivity.first } + :time_entry => { :hours => '2.5', :comments => '', :activity_id => TimeEntryActivity.first.id } end end end -- cgit v1.2.3