Skip to content

Instantly share code, notes, and snippets.

@boddhisattva
Last active September 21, 2024 05:48
Show Gist options
  • Save boddhisattva/c2158b63f1b71f46ce6fe1fea5f4b37f to your computer and use it in GitHub Desktop.
Save boddhisattva/c2158b63f1b71f46ce6fe1fea5f4b37f to your computer and use it in GitHub Desktop.
learner app generator tasks run manually
  1. rails g rspec:install

  2. FactoryBot Setup

RSpec.configure do |config|
  config.include FactoryBot::Syntax::Methods
end
  1. Add the should matcher config that looks like below
  • If you're working on a Rails app, simply place this at the bottom of spec/rails_helper.rb (or in a support file if you so choose):
Shoulda::Matchers.configure do |config|
  config.integrate do |with|
    with.test_framework :rspec
    with.library :rails
  end
end
  1. rails g annotate:install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment