Skip to content

Commit 10c54e1

Browse files
Fix: Stub LicenseValidator for accurate testing in Utils spec
1 parent f1c1883 commit 10c54e1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

react_on_rails_pro/spec/react_on_rails_pro/utils_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
# rubocop:disable Metrics/ModuleLength
66
module ReactOnRailsPro
77
RSpec.describe Utils do
8+
before do
9+
allow(LicenseValidator).to receive(:validated_license_data!).and_return({})
10+
end
11+
812
describe "cache helpers .bundle_hash and .bundle_file_name" do
913
context "with file in manifest", :webpacker do
1014
before do

0 commit comments

Comments
 (0)