Skip to content

Commit

Permalink
Merge pull request #874 from yast/fix-tests
Browse files Browse the repository at this point in the history
Fix UpgradeRepoManager tests
  • Loading branch information
imobachgs committed Jul 20, 2020
2 parents b76744d + b4fdfbc commit 62cf846
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/lib/upgrade_repo_manager_test.rb
Expand Up @@ -6,19 +6,19 @@
describe Installation::UpgradeRepoManager do
let(:repo1) do
Y2Packager::Repository.new(repo_id: 1, repo_alias: "test1",
url: "https://example.com/1", raw_url: "https://example.com/1",
url: URI("https://example.com/1"), raw_url: URI("https://example.com/1"),
name: "repo1", enabled: true, autorefresh: true)
end

let(:repo2) do
Y2Packager::Repository.new(repo_id: 2, repo_alias: "test2",
url: "https://example.com/2", raw_url: "https://example.com/2",
url: URI("https://example.com/2"), raw_url: URI("https://example.com/2"),
name: "repo2", enabled: true, autorefresh: true)
end

let(:extra_repo) do
Y2Packager::Repository.new(repo_id: 42, repo_alias: "extra",
url: "https://example.com/extra", raw_url: "https://example.com/extra",
url: URI("https://example.com/extra"), raw_url: URI("https://example.com/extra"),
name: "extra", enabled: true, autorefresh: true)
end

Expand All @@ -42,7 +42,7 @@

describe "#repo_url" do
it "returns the original raw URL if it has not been changed" do
expect(subject.repo_url(repo1)).to eq(repo1.raw_url)
expect(subject.repo_url(repo1)).to eq(repo1.raw_url.to_s)
end

end
Expand Down

0 comments on commit 62cf846

Please sign in to comment.