Skip to content

Commit

Permalink
Updated the view text to match with the test content
Browse files Browse the repository at this point in the history
  • Loading branch information
demesameneshoa committed Dec 12, 2023
1 parent 707d0a5 commit 793573c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 19 deletions.
38 changes: 21 additions & 17 deletions spec/examples.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,24 @@ example_id | status | run_time |
./spec/requests/posts_controller_spec.rb[1:2:1] | passed | 0.12654 seconds |
./spec/requests/users_controller_spec.rb[1:1:1] | passed | 0.02151 seconds |
./spec/requests/users_controller_spec.rb[1:2:1] | passed | 0.02803 seconds |
./spec/views/post_index_spec.rb[1:1:1] | passed | 0.34464 seconds |
./spec/views/post_index_spec.rb[1:1:2] | passed | 8.42 seconds |
./spec/views/post_index_spec.rb[1:1:3] | passed | 0.49004 seconds |
./spec/views/post_index_spec.rb[1:1:4] | passed | 0.66537 seconds |
./spec/views/post_index_spec.rb[1:1:5] | passed | 0.55495 seconds |
./spec/views/post_index_spec.rb[1:1:6] | passed | 8.59 seconds |
./spec/views/post_index_spec.rb[1:1:7] | passed | 0.54427 seconds |
./spec/views/post_index_spec.rb[1:1:8] | passed | 2.73 seconds |
./spec/views/post_index_spec.rb[1:1:9] | passed | 0.37343 seconds |
./spec/views/post_index_spec.rb[1:1:10] | passed | 0.84 seconds |
./spec/views/post_show_spec.rb[1:1:1] | passed | 0.31121 seconds |
./spec/views/post_show_spec.rb[1:1:2] | passed | 0.41488 seconds |
./spec/views/post_show_spec.rb[1:1:3] | passed | 0.29465 seconds |
./spec/views/post_show_spec.rb[1:1:4] | passed | 2.52 seconds |
./spec/views/post_show_spec.rb[1:1:5] | passed | 0.3013 seconds |
./spec/views/post_show_spec.rb[1:1:6] | passed | 0.47184 seconds |
./spec/views/post_show_spec.rb[1:1:7] | passed | 0.35394 seconds |
./spec/views/post_index_spec.rb[1:1:1] | passed | 0.42746 seconds |
./spec/views/post_index_spec.rb[1:1:2] | passed | 0.50956 seconds |
./spec/views/post_index_spec.rb[1:1:3] | passed | 0.52038 seconds |
./spec/views/post_index_spec.rb[1:1:4] | passed | 0.66339 seconds |
./spec/views/post_index_spec.rb[1:1:5] | passed | 6.02 seconds |
./spec/views/post_index_spec.rb[1:1:6] | passed | 0.82734 seconds |
./spec/views/post_index_spec.rb[1:1:7] | passed | 0.55261 seconds |
./spec/views/post_index_spec.rb[1:1:8] | passed | 0.60247 seconds |
./spec/views/post_index_spec.rb[1:1:9] | passed | 0.51387 seconds |
./spec/views/post_index_spec.rb[1:1:10] | passed | 0.86134 seconds |
./spec/views/post_show_spec.rb[1:1:1] | passed | 0.22347 seconds |
./spec/views/post_show_spec.rb[1:1:2] | passed | 0.21791 seconds |
./spec/views/post_show_spec.rb[1:1:3] | passed | 0.2296 seconds |
./spec/views/post_show_spec.rb[1:1:4] | passed | 0.22793 seconds |
./spec/views/post_show_spec.rb[1:1:5] | passed | 2.1 seconds |
./spec/views/post_show_spec.rb[1:1:6] | passed | 0.24023 seconds |
./spec/views/post_show_spec.rb[1:1:7] | passed | 0.22482 seconds |
./spec/views/user_index_spec.rb[1:1:1] | passed | 0.46157 seconds |
./spec/views/user_index_spec.rb[1:1:2] | passed | 0.43667 seconds |
./spec/views/user_index_spec.rb[1:1:3] | passed | 8.28 seconds |
./spec/views/user_index_spec.rb[1:1:4] | passed | 0.54879 seconds |
5 changes: 3 additions & 2 deletions spec/views/user_index_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
end
# I can see the number of posts each user has written.
it 'displays the number of posts each user has written' do
expect(page).to have_content('Number of posts: 3', count: 1)
expect(page).to have_content('Number of posts: 5', count: 1)
expect(page).to have_content('3 posts.', count: 1)
expect(page).to have_content('5 posts.', count: 1)
sleep(5)
end
# When I click on a user, I am redirected to that user's show page.
it 'when user is clicked it redirects to that users show page' do
Expand Down

0 comments on commit 793573c

Please sign in to comment.