Run YARD as RSpec - DEV Community
05-Aug-2022 1082
Let me introduce yardspec in this article. yardspec is a Ruby gem that supports executing YARD... Tagged with ruby, rspec, yard.As you may have noticed, this is the doctest concept from Rust, Python, Elixir, etc, dropped into RSpec and YARD for Ruby.It is often helpful to include example code in your documentation and demonstrate the results of executing them. But it is important to ensure that the documentation stays up-to-date with the code.That is the purpose for which yardspec was created. By writing example code that actually works, users can read it with confidence and try it out for themselves.
Run YARD as RSpec - DEV Community #ruby #rubydeveloper #rubyonrails #RSpec #Community #dev #rspec https://rubyonrails.ba/link/run-yard-as-rspec-dev-community