diff options
author | Rémy Coutable <remy@rymai.me> | 2017-09-19 16:11:23 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-09-19 16:26:20 +0200 |
commit | 3914af2f7129fc03ccddda0957bde43d5a26b0eb (patch) | |
tree | 8a7128be234c64f34fcc58623296b88c5c0e5a10 /spec/requests/api/v3/broadcast_messages_spec.rb | |
parent | 6ab74da9c687a13c1692f8ccb05af72be3a73695 (diff) | |
download | gitlab-ce-3914af2f7129fc03ccddda0957bde43d5a26b0eb.tar.gz |
Use set in some API specsrc/use-set-in-api-specs
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/requests/api/v3/broadcast_messages_spec.rb')
-rw-r--r-- | spec/requests/api/v3/broadcast_messages_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/requests/api/v3/broadcast_messages_spec.rb b/spec/requests/api/v3/broadcast_messages_spec.rb index 948cd78c177..d04b1c72004 100644 --- a/spec/requests/api/v3/broadcast_messages_spec.rb +++ b/spec/requests/api/v3/broadcast_messages_spec.rb @@ -1,11 +1,11 @@ require 'spec_helper' describe API::V3::BroadcastMessages do - let(:user) { create(:user) } - let(:admin) { create(:admin) } + set(:user) { create(:user) } + set(:admin) { create(:admin) } describe 'DELETE /broadcast_messages/:id' do - let!(:message) { create(:broadcast_message) } + set(:message) { create(:broadcast_message) } it 'returns a 401 for anonymous users' do delete v3_api("/broadcast_messages/#{message.id}"), |