Fixing requests after namespaces. Fixed admin bug with access to project
This commit is contained in:
parent
e92b563acf
commit
0e1635a68a
14 changed files with 35 additions and 62 deletions
|
@ -13,7 +13,12 @@ describe UserObserver do
|
|||
end
|
||||
|
||||
context 'when a new user is created' do
|
||||
let(:user) { double(:user, id: 42, password: 'P@ssword!', name: 'John', email: 'u@mail.local', username: 'root') }
|
||||
let(:user) { double(:user, id: 42,
|
||||
password: 'P@ssword!',
|
||||
name: 'John',
|
||||
email: 'u@mail.local',
|
||||
username: 'root',
|
||||
create_namespace: true) }
|
||||
let(:notification) { double :notification }
|
||||
|
||||
it 'sends an email' do
|
||||
|
|
|
@ -2,9 +2,7 @@ require 'spec_helper'
|
|||
|
||||
describe UsersProjectObserver do
|
||||
let(:user) { create(:user) }
|
||||
let(:project) { create(:project,
|
||||
code: "Fuu",
|
||||
path: "Fuu" ) }
|
||||
let(:project) { create(:project) }
|
||||
let(:users_project) { create(:users_project,
|
||||
project: project,
|
||||
user: user )}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue