Skip to content

Conversation

@ddbrendan
Copy link
Contributor

The RSpec configuration guide previously showed partial configuration snippets and instructed users to "check the template" for complete configurations. This required users to manually merge configurations from both the guide and the template files, which was confusing.

I updated the guide to include full configurations directly on the page. Users can now simply copy and paste the entire configuration blocks to replace their files without any manual merging.

@ddbrendan ddbrendan requested a review from coorasse December 4, 2025 14:49
@ddbrendan ddbrendan self-assigned this Dec 4, 2025
Copy link
Member

@rnestler rnestler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I like this a lot. With newer defaults in the rspec gem this will be outdated faster, then if we just add our options separately.

@ddbrendan
Copy link
Contributor Author

I'm not sure I like this a lot. With newer defaults in the rspec gem this will be outdated faster, then if we just add our options separately.

We could add a short reminder for users to inspect changes with git diff to avoid replacing newer defaults

Copy link
Member

@coorasse coorasse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am also not much in favour. I think is better to add smaller bits. I'd rather remove the spec helper template.

@ddbrendan
Copy link
Contributor Author

I am also not much in favour. I think is better to add smaller bits. I'd rather remove the spec helper template.

I added back the incremental snippets together with the the configurations from the template files

add_filter "app/mailers/application_mailer.rb"
add_filter "app/models/application_record.rb"
add_filter ".semaphore-cache"
SimpleCov.start 'rails' do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

our new standard is double quotes, so I'd use double quotes here as well

@ddbrendan ddbrendan requested a review from coorasse December 16, 2025 11:04
Copy link
Member

@coorasse coorasse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ddbrendan ddbrendan merged commit 7d416f7 into main Dec 18, 2025
2 checks passed
@ddbrendan ddbrendan deleted the Update-RSpec-guide branch December 18, 2025 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants