diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-06-02 08:27:44 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-06-07 17:34:09 +0300 |
commit | db95704fb484e546ae8cbbb24aa7582a4137b90f (patch) | |
tree | e63037dbc4b51c7790c7d6401dc6c63caacde1b1 /spec | |
parent | 2dd60b9b3f400e7709000eb1b4b7b7ab21326d5f (diff) |
Fix method definition style
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/user_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 4c213f633de..f8c2555d07a 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -887,7 +887,7 @@ describe User, models: true do let(:group) { create(:group) } let(:project) { create(:project, group: group) } - def add_user access + def add_user(access) group.add_user(user, access) end @@ -897,7 +897,7 @@ describe User, models: true do context 'with other projects runners' do let(:project) { create(:project) } - def add_user access + def add_user(access) project.team << [user, access] end |