From 63562ffa3d127972142b0f2b488e728d27e46283 Mon Sep 17 00:00:00 2001 From: Gregor Schmidt Date: Thu, 27 Oct 2011 15:09:36 +0200 Subject: [PATCH] According to Story::ORDER stoies w/o position should be last --- spec/models/version_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/version_spec.rb b/spec/models/version_spec.rb index 6e072da74c..720174b8bf 100644 --- a/spec/models/version_spec.rb +++ b/spec/models/version_spec.rb @@ -64,7 +64,7 @@ describe Version do issues = version.fixed_issues.find(:all, :conditions => {:project_id => project}, :order => 'position') issues.map(&:position).should == [1, 2, 3, 4, 5] - issues.map(&:subject).should == [i3, i4, i1, i2, i5].map(&:subject) + issues.map(&:subject).should == [i1, i2, i5, i3, i4].map(&:subject) issues.map(&:subject).uniq.size.should == 5 # makes sure, that all issue # subjects are uniq, so that the above assertion works as expected