Skip to content

Commit 960b04a

Browse files
justin808claude
andcommitted
Make test configs distinct to verify production fallback
Changed development config to have different values than production so the test actually verifies that staging falls back to production config, not just that it doesn't error. Development config now has: - source_path: app/javascript (vs app/packs) - source_entry_path: packs (vs entrypoints) - compile: true (vs false) This proves the test is actually using production values. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 6bc300c commit 960b04a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

spec/shakapacker/staging_env_instance_spec.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@
2323
let(:config_path) { File.join(Dir.pwd, "spec/fixtures/staging_config.yml") }
2424

2525
before do
26-
# Create a minimal config file for testing
26+
# Create a minimal config file for testing with distinct values
2727
FileUtils.mkdir_p(File.dirname(config_path))
2828
File.write(config_path, <<~YAML)
2929
development:
30-
source_path: app/packs
31-
source_entry_path: entrypoints
30+
source_path: app/javascript
31+
source_entry_path: packs
32+
compile: true
3233
production:
3334
source_path: app/packs
3435
source_entry_path: entrypoints

0 commit comments

Comments
 (0)