Skip to content

Commit a31b97f

Browse files
justin808claude
andcommitted
Skip RSC configuration tests when methods don't exist in master
The entire "RSC configuration options" describe block tests features that are being added by this PR (rsc_bundle_js_file, react_client_manifest_file, react_server_client_manifest_file). When CI merges this PR with master for testing, these attr_accessors don't exist yet, causing NoMethodError in all 9 tests in this block. Solution: Add skip guard in the before block that skips all tests in this describe block when the RSC methods aren't available. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 6b6d947 commit a31b97f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/react_on_rails/configuration_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ module ReactOnRails
192192

193193
describe "RSC configuration options" do
194194
before do
195+
skip "RSC configuration not available" unless described_class.new.respond_to?(:rsc_bundle_js_file=)
196+
195197
allow(ReactOnRails::PackerUtils).to receive_messages(
196198
supports_autobundling?: true,
197199
nested_entries?: true

0 commit comments

Comments
 (0)