diff options
author | Rémy Coutable <remy@rymai.me> | 2017-09-19 17:11:23 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-09-19 17:26:20 +0300 |
commit | 3914af2f7129fc03ccddda0957bde43d5a26b0eb (patch) | |
tree | 8a7128be234c64f34fcc58623296b88c5c0e5a10 /spec/requests/api/access_requests_spec.rb | |
parent | 6ab74da9c687a13c1692f8ccb05af72be3a73695 (diff) |
Use set in some API specs
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/requests/api/access_requests_spec.rb')
-rw-r--r-- | spec/requests/api/access_requests_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/requests/api/access_requests_spec.rb b/spec/requests/api/access_requests_spec.rb index 6bd17697c33..50d0f72f6bc 100644 --- a/spec/requests/api/access_requests_spec.rb +++ b/spec/requests/api/access_requests_spec.rb @@ -1,12 +1,12 @@ require 'spec_helper' describe API::AccessRequests do - let(:master) { create(:user) } - let(:developer) { create(:user) } - let(:access_requester) { create(:user) } - let(:stranger) { create(:user) } + set(:master) { create(:user) } + set(:developer) { create(:user) } + set(:access_requester) { create(:user) } + set(:stranger) { create(:user) } - let(:project) do + set(:project) do create(:project, :public, :access_requestable, creator_id: master.id, namespace: master.namespace) do |project| project.team << [developer, :developer] project.team << [master, :master] @@ -14,7 +14,7 @@ describe API::AccessRequests do end end - let(:group) do + set(:group) do create(:group, :public, :access_requestable) do |group| group.add_developer(developer) group.add_owner(master) |