Run YARD as RSpec - DEV Community

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 #dev #rspec https://rubyonrails.ba/single/run-yard-as-rspec-dev-community

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles