File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 7171
7272 it 'denies access to the request for comment' do
7373 visit ( rfc_path )
74- expect ( page ) . to have_no_current_path ( rfc_path )
75- expect ( page ) . to have_no_content ( request_for_comment . exercise . title )
7674 expect ( page ) . to have_current_path ( sign_in_path )
7775 expect ( page ) . to have_content ( I18n . t ( 'application.not_signed_in' ) )
76+ expect ( page ) . to have_no_current_path ( rfc_path )
77+ expect ( page ) . to have_no_content ( request_for_comment . exercise . title )
7878 end
7979 end
8080
105105 it 'denies access to the request for comment' do
106106 mail . deliver_now
107107 visit ( rfc_link )
108- expect ( page ) . to have_no_current_path ( rfc_link )
109- expect ( page ) . to have_no_content ( request_for_comment . exercise . title )
110108 expect ( page ) . to have_current_path ( sign_in_path )
111109 expect ( page ) . to have_content ( I18n . t ( 'application.not_signed_in' ) )
110+ expect ( page ) . to have_no_current_path ( rfc_link )
111+ expect ( page ) . to have_no_content ( request_for_comment . exercise . title )
112112 end
113113 end
114114
You can’t perform that action at this time.
0 commit comments