Skip to content

Spec Tips

Henne Vogelsang edited this page Feb 16, 2024 · 4 revisions

A collection of tips & tricks for our rspec test suite.

Mock a remote package link

Mock that a Package is on a remote project-link instead of re-creating the Project setup for this situation.

before do
 allow(Package).to receive(:get_by_project_and_name).and_return(nil)
end
Clone this wiki locally