REVIEW: for some reason there is some kind of race condition: principal.members.first returns nil although there are members. but when you breakpoint into it, call it manually, then it will have the correct value. (maybe because we call it a little later..) a short sleep fixes it, but this should be investigated in the future.

pull/59/head
Martin Linkhorst 12 years ago
parent eb506a546a
commit 35072bd4cf
  1. 2
      features/step_definitions/project_member_steps.rb

@ -72,6 +72,8 @@ end
def member_for_login principal_name def member_for_login principal_name
principal = InstanceFinder.find(Principal, principal_name) principal = InstanceFinder.find(Principal, principal_name)
sleep 1
#the assumption here is, that there is only one project #the assumption here is, that there is only one project
principal.members.first principal.members.first
end end

Loading…
Cancel
Save