summaryrefslogtreecommitdiff
path: root/spec/serializers/job_entity_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/serializers/job_entity_spec.rb')
-rw-r--r--spec/serializers/job_entity_spec.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/serializers/job_entity_spec.rb b/spec/serializers/job_entity_spec.rb
index 5ca7bf2fcaf..ec30816654b 100644
--- a/spec/serializers/job_entity_spec.rb
+++ b/spec/serializers/job_entity_spec.rb
@@ -8,7 +8,7 @@ describe JobEntity do
before do
allow(request).to receive(:current_user).and_return(user)
- project.add_developer(user)
+ project.add_master(user)
end
let(:entity) do
@@ -90,6 +90,10 @@ describe JobEntity do
end
context 'when user is not allowed to trigger action' do
+ before do
+ project.team.truncate
+ end
+
it 'does not contain path to play action' do
expect(subject).not_to include(:play_path)
end