This README would normally document whatever steps are necessary to get the application up and running.
Things you may want to cover:
Ruby 3.2.2
- Ruby 3.2.2
- Rails "~> 7.0.4", ">= 7.0.4.3"
- Postgresql "~> 1.1"
- Rspec '~> 6.0.0'
- Coming soon ...
rails db:create
rails db:migrate
Default: Run all spec files (i.e., those matching spec/*/_spec.rb)
bundle exec rspec
Run all spec files in a single directory (recursively)
bundle exec rspec spec/models
Run a single spec file
bundle exec rspec spec/controllers/articles_controller_spec.rb
See all options for running spec
bundle exec rspec --help
RSpec.describe 'Article' do #
context 'before publication' do # (almost) plain English
it 'cannot have comments' do #
expect { Article.create.comments.create! }.to raise_error(ActiveRecord::RecordInvalid) # test code
end
end
end
- Coming Soon ...
- Coming Soon ...
