File tree Expand file tree Collapse file tree 4 files changed +1
-12
lines changed
Expand file tree Collapse file tree 4 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -95,12 +95,7 @@ def metadata=(metadata_model)
9595 end
9696
9797 def title
98- trailer = if in_mediaflux?
99- ""
100- else
101- " (#{ ::Project ::PENDING_STATUS } )"
102- end
103- self . metadata_model . title + trailer
98+ self . metadata_model . title
10499 end
105100
106101 def departments
Original file line number Diff line number Diff line change 7171 expect ( page ) . to have_content ( "Welcome" )
7272 click_on ( "My test project" )
7373 expect ( page ) . to have_content ( "This project has not been saved to Mediaflux" )
74- expect ( page ) . to have_content ( "My test project (pending)" )
75- expect ( page ) . to have_content ( "My test project (#{ ::Project ::PENDING_STATUS } )" )
7674 expect ( page ) . to have_content ( read_only . given_name )
7775 expect ( page ) . to have_content ( read_only . display_name )
7876 expect ( page ) . to have_content ( read_only . family_name )
Original file line number Diff line number Diff line change 244244 it "shows the sysadmin buttons for a pending project" do
245245 sign_in sysadmin_user
246246 visit "/projects/#{ project_not_in_mediaflux . id } "
247- expect ( page ) . to have_content "#{ project_not_in_mediaflux . metadata_model . title } (#{ ::Project ::PENDING_STATUS } )"
248247 expect ( page ) . to have_content "This project has not been saved to Mediaflux"
249248 expect ( page ) . to have_content pending_text
250249 expect ( page ) . to have_selector ( :link_or_button , "Approve Project" )
Original file line number Diff line number Diff line change 4747 it "Shows the not yet approved (pending) project" do
4848 sign_in sponsor_user
4949 visit "/projects/#{ project_not_in_mediaflux . id } "
50- expect ( page ) . to have_content "(#{ ::Project ::PENDING_STATUS } )"
5150 expect ( page ) . to have_content pending_text
5251 end
5352 end
7776 it "shows none when the data user is empty" do
7877 sign_in data_manager
7978 visit "/projects/#{ project_not_in_mediaflux . id } "
80- expect ( page ) . to have_content "project 123 (#{ ::Project ::PENDING_STATUS } )"
8179 expect ( page ) . to have_content "This project has not been saved to Mediaflux"
8280 expect ( page ) . to have_content pending_text
8381 expect ( page ) . not_to have_button "Approve Project"
403401 sign_in sponsor_user
404402 visit "/projects"
405403 expect ( page ) . to have_content ( project_not_in_mediaflux . title )
406- expect ( page ) . to have_content ( "(#{ ::Project ::PENDING_STATUS } )" )
407404 end
408405 end
409406
You can’t perform that action at this time.
0 commit comments