Skip to content

Commit

Permalink
Delete cruft from previous iterations
Browse files Browse the repository at this point in the history
Removing no longer relevant models, controllers, and tests from project
As further cleanup for the removing cruft, remove factories, and
relations for no longer relevant models
  • Loading branch information
Gregory Daynes committed Feb 20, 2017
1 parent fbf3e1c commit fec7cf0
Show file tree
Hide file tree
Showing 23 changed files with 1 addition and 565 deletions.
55 changes: 0 additions & 55 deletions app/controllers/staff_controller.rb

This file was deleted.

6 changes: 0 additions & 6 deletions app/models/language.rb

This file was deleted.

2 changes: 0 additions & 2 deletions app/models/person.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
class Person < ApplicationRecord
has_one :staff

has_many :person_presentations
has_many :presentations, through: :person_presentations

Expand Down
3 changes: 0 additions & 3 deletions app/models/role.rb

This file was deleted.

6 changes: 0 additions & 6 deletions app/models/skill.rb

This file was deleted.

23 changes: 0 additions & 23 deletions app/models/staff.rb

This file was deleted.

13 changes: 0 additions & 13 deletions app/views/staff/_errors.html.erb

This file was deleted.

20 changes: 0 additions & 20 deletions app/views/staff/_form.html.erb

This file was deleted.

6 changes: 0 additions & 6 deletions app/views/staff/edit.html.erb

This file was deleted.

32 changes: 0 additions & 32 deletions app/views/staff/index.html.erb

This file was deleted.

6 changes: 0 additions & 6 deletions app/views/staff/new.html.erb

This file was deleted.

14 changes: 0 additions & 14 deletions app/views/staff/show.html.erb

This file was deleted.

2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Rails.application.routes.draw do
resources :people, :staff
resources :people

root 'welcome#index'
end
14 changes: 0 additions & 14 deletions spec/factories.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,11 @@
password_confirmation "abc123"
date_of_birth Date.new(1970,01,01)
gender "Computer"

trait :invalid do
first_name nil
end
end

factory :staff do
pod 1
started_at_company Date.new(2017,01,01)
person
end

factory :presentation do
title "Test Presentation"
content "Lorem ipsum dolor"
date_of_presentation Date.new(2017,02,18)

trait :invalid do
title nil
end
end
end
8 changes: 0 additions & 8 deletions spec/models/person_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@
)
}

let!(:staff) {
Staff.new(
:pod => 1,
:started_at_company => Date.new(2017,02,01),
:person => subject
)
}

describe "validations" do
it "expects valid attributes" do
expect(subject).to be_valid
Expand Down
56 changes: 0 additions & 56 deletions spec/models/staff_spec.rb

This file was deleted.

64 changes: 0 additions & 64 deletions test/controllers/people_controller_test.rb

This file was deleted.

Loading

0 comments on commit fec7cf0

Please sign in to comment.