Skip to content

Commit 660aab3

Browse files
justin808claude
andcommitted
Fix YAML alias parsing in RSpec bundler tests
Enable alias parsing in YAML.load_file to support shakapacker.yml which uses YAML anchors (&default) and aliases (<<: *default). This fixes Psych::AliasesNotEnabled errors in CI. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 84311cc commit 660aab3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/webpack/bundler_switching_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
RSpec.describe 'Bundler Switching', type: :feature do
77
let(:shakapacker_config_path) { Rails.root.join('config', 'shakapacker.yml') }
8-
let(:original_config) { YAML.load_file(shakapacker_config_path) }
8+
let(:original_config) { YAML.load_file(shakapacker_config_path, aliases: true) }
99

1010
after do
1111
# Restore original config after each test

0 commit comments

Comments
 (0)