gitlab-org--gitlab-foss/spec/factories
Timothy Andrew dd3b738d5b Fix failing tests relating to backporting ee!581.
1. `GitPushService` was still using `{merge,push}_access_level_attributes` instead
   of `{merge,push}_access_levels_attributes`.

2. The branches API creates access levels regardless of the state of the
   `developers_can_{push,merge}` parameters. This is in line with the UI,
   where Master access is the default for a new protected branch.

3. Use `after(:build)` to create access levels in the
   `protected_branches` factory, so that `factories_spec` passes. It
   only builds records, so we need to create access levels on `build` as
   well.
2016-08-16 13:42:34 +05:30
..
ci
abuse_reports.rb
appearances.rb
award_emoji.rb
broadcast_messages.rb
commit_statuses.rb
commits.rb
deploy_keys_projects.rb
deployments.rb
emails.rb
environments.rb
events.rb
file_uploader.rb
forked_project_links.rb
group_members.rb
groups.rb
identities.rb
issues.rb
keys.rb
label_links.rb
labels.rb
lfs_objects.rb
lfs_objects_projects.rb
merge_requests.rb
milestones.rb
namespaces.rb
notes.rb
notification_settings.rb
oauth_access_tokens.rb
oauth_applications.rb
personal_access_tokens.rb
personal_snippets.rb
project_group_links.rb
project_hooks.rb
project_members.rb
project_snippets.rb
project_wikis.rb
projects.rb
protected_branches.rb Fix failing tests relating to backporting ee!581. 2016-08-16 13:42:34 +05:30
releases.rb
sent_notifications.rb
service_hooks.rb
services.rb
snippets.rb
spam_logs.rb
system_hooks.rb
todos.rb
u2f_registrations.rb
user_agent_details.rb
users.rb
wiki_pages.rb