Update the install generator so when rails generate cucumber:install is run the existing Rake-based annotation configuration is only generated for projects running versions of Rails pre v6.0. When running Rails v6.0 or greater, add configuration to the Rails development and test environment configuration files.
How Has This Been Tested?
This is covered in both RSpec and Cucumber tests.
Types of changes
[x] Bug fix (non-breaking change which fixes an issue).
[ ] New feature (non-breaking change which adds functionality).
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected).
Checklist
[x] I've added tests for my code.
[ ] My change requires a change to the documentation.
Summary
Fix
rails notes
support by adding config toconfig/environments/development.rb
andconfig/environments/test.rb
for Rails 6+ projects..Context
As per #510, the config generated via
rails generate cucumber:install
does not supportrails notes
for Rails 6+.By changing the annotate feature to exercise
rails notes
rather thanrake notes
the problem is exposed.Change
Update the install generator so when
rails generate cucumber:install
is run the existing Rake-based annotation configuration is only generated for projects running versions of Rails pre v6.0. When running Rails v6.0 or greater, add configuration to the Railsdevelopment
andtest
environment configuration files.How Has This Been Tested?
This is covered in both RSpec and Cucumber tests.
Types of changes
Checklist