PostgreSQL still doesn't implicitly order stuff

pull/6827/head
Felix Schäfer 12 years ago
parent d23f5feb06
commit dbf0c11276
  1. 2
      features/step_definitions/cost_steps.rb

@ -38,7 +38,7 @@ Given /^there (?:is|are) (\d+) (default )?hourly rate[s]? with the following:$/
rate.reload.save!
unless rate.project.nil? || User.find_by_login(value).projects.include?(rate.project)
rate.save!
rate.update_attribute :project_id, User.find_by_login(value).projects.last.id
rate.update_attribute :project_id, User.find_by_login(value).projects(:order => "id ASC").last.id
rate.reload.save!
end
rate.update_attribute :user_id, User.find_by_login(value).id

Loading…
Cancel
Save