You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks a lot for the gem, it's super useful and works with latest Ruby and Rails versions! 😁
Somehow rspec-watcher runs rspec twice everytime something changes.
I tried seeing if it was a duplicate rule on config/initializers/rspec_watcher.rb but it wasn't.
So I created a new rails 7.1.3.2 with ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux] application by running.
rails new testme -d postgresql --api --minimal
bundle add rspec-rails --group "test"
rails g rspec:install
And creating a new test with sleep(1) you can see this very clearly.
Hopefully I can help once I get more acquainted with the gem.
Let me know if you need any more info :)
The text was updated successfully, but these errors were encountered:
Hi,
thanks for trying out my gem! I haven't been able to immediately replicate this using the same versions of Ruby and Rails. Could you try adding some form of logging into the watch blocks in the initializer? Hopefully that could help determine why rspec gets triggered twice.
Hey!
Thanks a lot for the gem, it's super useful and works with latest Ruby and Rails versions! 😁
Somehow
rspec-watcher
runs rspec twice everytime something changes.I tried seeing if it was a duplicate rule on
config/initializers/rspec_watcher.rb
but it wasn't.So I created a new
rails 7.1.3.2
withruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux]
application by running.And creating a new test with
![rspecwatcher](https://private-user-images.githubusercontent.com/13826108/327454639-19413603-0935-45f2-b824-f20863fd518f.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg3OTQ3ODAsIm5iZiI6MTczODc5NDQ4MCwicGF0aCI6Ii8xMzgyNjEwOC8zMjc0NTQ2MzktMTk0MTM2MDMtMDkzNS00NWYyLWI4MjQtZjIwODYzZmQ1MThmLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA1VDIyMjgwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUzZGZlYjk4ZjQzYjUyZjc4NTU3YzViNmI5OGNjNDA5NjA3YzhlZDBhOTRjNDRkOTliMWViZDQxMDBlY2IxMDImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.lraSo4-FwwJh2qszJR2bQEexhGQNH4dOnMQVLZFfEv4)
sleep(1)
you can see this very clearly.Hopefully I can help once I get more acquainted with the gem.
Let me know if you need any more info :)
The text was updated successfully, but these errors were encountered: