Skip to content
This repository has been archived by the owner on May 7, 2023. It is now read-only.

Feature/admin shelter index info #93

Closed
Changes from 1 commit
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
29e9f2d
Refactor pet index controller
NoahZinter May 20, 2021
4d601a4
create pet and shelter seeds
NoahZinter May 20, 2021
16bae84
Create Office and Vet seeds
NoahZinter May 20, 2021
8944c03
Test existence of start application button
NoahZinter May 20, 2021
5ad69c9
Create applications_controller
NoahZinter May 20, 2021
7ae9037
Test routing of start application button
NoahZinter May 20, 2021
4a88cfd
Test existence of new applications form
NoahZinter May 20, 2021
dc1f8d9
Refactor text area for new applications form
NoahZinter May 21, 2021
7fae165
Test form elements for new applications
NoahZinter May 21, 2021
2440562
Rename applications to petition, create petition model
NoahZinter May 21, 2021
b0a771a
Migrate petitons
NoahZinter May 21, 2021
8791b20
Test path after start application button
NoahZinter May 21, 2021
b5a5d50
Display applicant info on petition show page
NoahZinter May 22, 2021
f20f944
Refactor formatting/view
NoahZinter May 22, 2021
206a933
Format flash message
NoahZinter May 22, 2021
0696b10
Refactor to pass tests
NoahZinter May 22, 2021
0270152
Run rubocop
NoahZinter May 22, 2021
97d0728
Merge pull request #29 from NoahZinter/heroku_deploy
NoahZinter May 22, 2021
7dec1d2
test incomplete information
NoahZinter May 22, 2021
7fe0b53
Test petition pets relationship
NoahZinter May 23, 2021
51897ce
model test petition
NoahZinter May 23, 2021
7a0f13a
Merge pull request #30 from NoahZinter/incomplete_fields
NoahZinter May 23, 2021
41bc6fa
Test existence of search button for pets on petition show
NoahZinter May 23, 2021
217beba
Create test for pet search display
NoahZinter May 23, 2021
c7d99fe
Create pet search funcitonality in petition show
NoahZinter May 23, 2021
1db477b
Expand spec expectations
NoahZinter May 23, 2021
76b4688
DRY up petition show spex
NoahZinter May 23, 2021
c964649
Merge pull request #31 from NoahZinter/pet_petitions
NoahZinter May 23, 2021
05c6ef9
refactor seeds
NoahZinter May 23, 2021
16f7492
Merge pull request #32 from NoahZinter/refactor/seeds
NoahZinter May 23, 2021
4fed279
Redirect pet and petition info to new controller
NoahZinter May 23, 2021
f7bfb82
Test pet to pet_petitions relationship
NoahZinter May 23, 2021
0081b3f
Test pet_petition relationship belongs to both pet and petition
NoahZinter May 23, 2021
ef0dcf9
refactor add_pet to be a part of show page
NoahZinter May 23, 2021
c6309ab
Create and test .associated_pets method for pet_petition model
NoahZinter May 24, 2021
36bfae5
Test adding pets to application
NoahZinter May 24, 2021
494b4c0
Merge pull request #33 from NoahZinter/feature/add_pet_to_petition
NoahZinter May 24, 2021
70ef5fd
Adjust petition columns to include good home, remove goodhome column …
NoahZinter May 24, 2021
b5291d2
Test default goodhome message
NoahZinter May 24, 2021
b0e97ee
Test petition status
NoahZinter May 24, 2021
e058095
Hide adoption option if application pending
NoahZinter May 24, 2021
e33d1f6
Refactor petition model spec
NoahZinter May 25, 2021
f1e7fe6
Refactor show_spec for coverage
NoahZinter May 25, 2021
3138400
Hound refactor
NoahZinter May 25, 2021
8c1084e
Merge pull request #35 from NoahZinter/feature/application_submit
NoahZinter May 25, 2021
5a74d2b
Test reverse_alphabetize
NoahZinter May 25, 2021
7fdc518
Test admin shelters index
NoahZinter May 25, 2021
2915de2
run rubocop
NoahZinter May 25, 2021
b01cb92
Merge pull request #36 from NoahZinter/feature/admin_shelters_index
NoahZinter May 25, 2021
6ac1a8b
Create has many petitions relationship for shelter, test shelters wit…
NoahZinter May 26, 2021
1f49b14
Remove Pending method/spec from Pet and Pet Spec
NoahZinter May 26, 2021
e6dc287
Test pending applications appear on index
NoahZinter May 27, 2021
be58b19
Merge pull request #37 from NoahZinter/feature/shelters_with_pending
NoahZinter May 27, 2021
9ab71df
Refactor seeds to include new data
NoahZinter May 27, 2021
19c9cab
Test presence of list of pets related to petition on admin petition s…
NoahZinter May 27, 2021
66628d5
Test approve reject buttons for admin petition show
NoahZinter May 27, 2021
307a635
Get admin_petitions_controller access to appropriate petition and par…
NoahZinter May 27, 2021
2e746a5
Test that approval hides option to approve or reject
NoahZinter May 27, 2021
d23e744
Prepare tests"
NoahZinter May 27, 2021
31f7b59
Refactor admin_[etitions_controller method into PetPetition model method
NoahZinter May 27, 2021
569dedd
Test associated pet petitions model method
NoahZinter May 27, 2021
06a5fdc
Pass admin petitions show tests
NoahZinter May 27, 2021
98db732
Test approval/rejection of one pet_petition does not influence anothe…
NoahZinter May 27, 2021
0110ac6
run rubocop
NoahZinter May 27, 2021
5f459cc
Merge pull request #39 from NoahZinter/feature/approve_adoption
NoahZinter May 27, 2021
3354223
Refactor @pet_5 creation
NoahZinter May 27, 2021
1f119ba
Test Alphabetical order of pending shelters
NoahZinter May 27, 2021
1e35823
Test display of shelter name and location in admin show
NoahZinter May 27, 2021
1405737
Test each shelter name is a link
NoahZinter May 27, 2021
b6ba07d
Refactor shelter model test for new data
NoahZinter May 27, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Expand spec expectations
  • Loading branch information
NoahZinter committed May 23, 2021
commit 1db477b76d9221eb65a9c0d68b61f6da1353c04f
1 change: 1 addition & 0 deletions spec/features/petitions/show_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@

expect(current_path).to eq "/petitions/#{@id}"
expect(page).to have_content('Fluffy')
expect(page).not_to have_content('Lucille Bald')
end
end