File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 {
77 organization_id : organization . id ,
88 storage_location_id : storage_location . id ,
9- user_id : create ( : organization_admin, organization : organization ) . id
9+ user_id : organization_admin . id
1010 }
1111 end
1212
1313 let ( :invalid_storage_location_attributes ) do
1414 {
1515 organization_id : organization . id ,
1616 storage_location_id : nil ,
17- user_id : create ( : organization_admin, organization : organization ) . id
17+ user_id : organization_admin . id
1818 }
1919 end
2020
2121 let ( :invalid_attributes ) do
2222 { organization_id : nil }
2323 end
2424
25- let ( :valid_session ) { { } }
26-
2725 describe "while signed in as an organization admin" do
2826 before do
2927 sign_in ( organization_admin )
155153 expect do
156154 post audits_path ( audit : valid_attributes , save_progress : '' )
157155 expect ( Audit . last . in_progress? ) . to be_truthy
156+ expect ( flash [ :notice ] ) . to include ( "Audit's progress was successfully saved." )
158157 end . to change ( Audit . in_progress , :count ) . by ( 1 )
159158 end
160159
You can’t perform that action at this time.
0 commit comments