Skip to content

Commit

Permalink
Use "refused" instead "refuse"
Browse files Browse the repository at this point in the history
Co-Authored-By: Ladislav Slezák <lslezak@suse.cz>
  • Loading branch information
dgdavid and lslezak committed Jul 1, 2019
1 parent ccc336a commit efe319f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/registration/ui/addon_eula_dialog.rb
Expand Up @@ -133,7 +133,7 @@ def accept_eula(addon)
result = run_eula_dialog(eula_reader)
addon.accept_eula if result == :accepted

return :next if [:accepted, :refuse].include?(result)
return :next if [:accepted, :refused].include?(result)
result
end
ensure
Expand Down
4 changes: 2 additions & 2 deletions test/registration/ui/addon_eula_dialog_spec.rb
Expand Up @@ -51,7 +51,7 @@

context "when there are EULA acceptances pending" do
let(:addons) { [addon_with_eula, second_addon_with_eula] }
let(:first_dialog_response) { :refuse }
let(:first_dialog_response) { :refused }
let(:second_dialog_response) { :accepted }

before do
Expand Down Expand Up @@ -114,7 +114,7 @@

before do
allow(Yast::ProductLicense).to receive(:HandleLicenseDialogRet)
.and_return(:refuse)
.and_return(:refused)
end

it "does not set it as accepted" do
Expand Down

0 comments on commit efe319f

Please sign in to comment.