Created
August 24, 2010 16:58
-
-
Save retorquere/547892 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p = Project.find(:first) | |
u = User.find(:first) | |
puts p.name | |
s1 = Story.new | |
s1.subject = 'Story 1' | |
s1.project = p | |
s1.tracker_id = Story.trackers[0] | |
s1.author = u | |
s1.save! | |
s2 = Story.new | |
s2.subject = 'Story 2' | |
s2.project = p | |
s2.tracker_id = Story.trackers[0] | |
s2.author = u | |
s2.save! | |
puts s1.position | |
puts s2.position | |
s1.move_after s2.id | |
puts s1.position | |
puts s2.position |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment