Skip to content

Commit afaad7d

Browse files
Add test setup for Pro features license validation
1 parent 237be8b commit afaad7d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spec/react_on_rails/react_component/render_options_spec.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ def the_attrs(react_component_name: "App", options: {})
1919
}
2020
end
2121

22+
# TODO: test pro features without license
23+
before do
24+
allow(ReactOnRails::Utils).to receive(:react_on_rails_pro_licence_valid?).and_return(true)
25+
end
26+
2227
it "works without raising error" do
2328
attrs = the_attrs
2429

0 commit comments

Comments
 (0)