comparison test/unit/version_test.rb @ 524:1248a47e81b3 feature_36

Merge from branch "luisf"
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Mon, 25 Jul 2011 14:39:38 +0100
parents cd2282d2aa55
children 5e80956cc792
comparison
equal deleted inserted replaced
519:3be6bc3c2a17 524:1248a47e81b3
13 # 13 #
14 # You should have received a copy of the GNU General Public License 14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software 15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 17
18 require File.dirname(__FILE__) + '/../test_helper' 18 require File.expand_path('../../test_helper', __FILE__)
19 19
20 class VersionTest < ActiveSupport::TestCase 20 class VersionTest < ActiveSupport::TestCase
21 fixtures :projects, :users, :issues, :issue_statuses, :trackers, :enumerations, :versions 21 fixtures :projects, :users, :issues, :issue_statuses, :trackers, :enumerations, :versions
22 22
23 def setup 23 def setup
188 188
189 @version = Version.find(7) 189 @version = Version.find(7)
190 # Separate hierarchy 190 # Separate hierarchy
191 project_1_issue = Issue.find(1) 191 project_1_issue = Issue.find(1)
192 project_1_issue.fixed_version = @version 192 project_1_issue.fixed_version = @version
193 assert project_1_issue.save, project_1_issue.errors.full_messages 193 assert project_1_issue.save, project_1_issue.errors.full_messages.to_s
194 194
195 project_5_issue = Issue.find(6) 195 project_5_issue = Issue.find(6)
196 project_5_issue.fixed_version = @version 196 project_5_issue.fixed_version = @version
197 assert project_5_issue.save 197 assert project_5_issue.save
198 198