Deprecate code for Project. Use title and path
This commit is contained in:
parent
ab9d023651
commit
c50ec72b52
22 changed files with 79 additions and 83 deletions
|
@ -12,6 +12,7 @@ FactoryGirl.define do
|
|||
factory :user, aliases: [:author, :assignee, :owner] do
|
||||
email { Faker::Internet.email }
|
||||
name
|
||||
username 'john'
|
||||
password "123456"
|
||||
password_confirmation { password }
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ 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') }
|
||||
let(:user) { double(:user, id: 42, password: 'P@ssword!', name: 'John', email: 'u@mail.local', username: 'root') }
|
||||
let(:notification) { double :notification }
|
||||
|
||||
it 'sends an email' do
|
||||
|
|
|
@ -78,14 +78,6 @@ describe Admin::ProjectsController, "routing" do
|
|||
get("/admin/projects").should route_to('admin/projects#index')
|
||||
end
|
||||
|
||||
it "to #create" do
|
||||
post("/admin/projects").should route_to('admin/projects#create')
|
||||
end
|
||||
|
||||
it "to #new" do
|
||||
get("/admin/projects/new").should route_to('admin/projects#new')
|
||||
end
|
||||
|
||||
it "to #edit" do
|
||||
get("/admin/projects/gitlab/edit").should route_to('admin/projects#edit', id: 'gitlab')
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue