Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix system spec for editing and deleting posts #210

Open
riggraz opened this issue Apr 12, 2023 · 1 comment
Open

Fix system spec for editing and deleting posts #210

riggraz opened this issue Apr 12, 2023 · 1 comment
Labels
ruby Issues that require ruby knowledge and pull requests that update Ruby code specs Issues or pull requests regarding specs (tests)

Comments

@riggraz
Copy link
Collaborator

riggraz commented Apr 12, 2023

  1. The spec lets edit the post of spec/system/post_spec.rb fails but I don't know why.
  2. The spec lets delete the post is fragile: sometimes it passes, sometimes it fails.

They should be fixed.

@riggraz riggraz added ruby Issues that require ruby knowledge and pull requests that update Ruby code specs Issues or pull requests regarding specs (tests) labels Apr 12, 2023
@riggraz riggraz changed the title Fix system spec for editing posts Fix system spec for editing and deleting posts May 6, 2023
@riggraz
Copy link
Collaborator Author

riggraz commented May 6, 2023

The lets delete the post spec sometimes fails with this error:

1) post lets delete the post
     Failure/Error: @board = Board.find(params[:id])

     ActiveRecord::RecordNotFound:
       Couldn't find Board with 'id'=0 [WHERE "boards"."tenant_id" = $1]



     # ./app/controllers/boards_controller.rb:13:in `show'
     # ------------------
     # --- Caused by: ---
     # Capybara::ExpectationNotMet:
     #   expected "/posts/[10](https://github.com/astuto/astuto/actions/runs/4901814449/jobs/8753291808#step:9:11)6" to equal "/boards/70"
     #   ./spec/system/post_spec.rb:99:in `block (2 levels) in <main>'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ruby Issues that require ruby knowledge and pull requests that update Ruby code specs Issues or pull requests regarding specs (tests)
Projects
None yet
Development

No branches or pull requests

1 participant