Skip to content

Commit

Permalink
Merge babf589 into 5a939cf
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Mar 28, 2022
2 parents 5a939cf + babf589 commit a81ffde
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/dialogs/registration_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
require "migration_sle/dialogs/registration"

describe MigrationSle::Dialogs::Registration do
before do
allow(Yast::OSRelease).to receive(:ReleaseInformation).and_return("openSUSE Leap 15.4")
end

include_examples "CWM::Dialog"

describe "#help" do
Expand Down
4 changes: 4 additions & 0 deletions test/main_workflow_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
}
end

before do
allow(Yast::OSRelease).to receive(:ReleaseInformation).and_return("openSUSE Leap 15.4")
end

describe "#run" do
before do
allow(Yast::Wizard).to receive(:CreateDialog)
Expand Down
5 changes: 5 additions & 0 deletions test/repos_workflow_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

describe "#select_migration_products" do
before do
# avoid SLP network scan
# note: the scan is done in the constructor, make sure it is mocked
# *before* calling "subject"
allow(Registration::UrlHelpers).to receive(:registration_url)

allow(Yast::OSRelease).to receive(:ReleaseVersion).and_return("15.4")
allow(subject).to receive(:migrations).and_return(migrations)
end
Expand Down

0 comments on commit a81ffde

Please sign in to comment.