db_tutorial Writing a sqlite clone from scratch in C Testing with rspec https://rspec.info/ vim Gemfile source 'https://rubygems.org' gem 'rspec' bundle install rspec --init vim main_spec.rb Put test cases here IO.popen("./xxx", "r+") do |pipe| change xxx with a.out bundle exec rspec