According to Story::ORDER stoies w/o position should be last

pull/6827/head
Gregor Schmidt 13 years ago
parent d4151fe1f4
commit 63562ffa3d
  1. 2
      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

Loading…
Cancel
Save