Skip to content

Commit

Permalink
fix malformed string exception if cio ignore is disabled (bnc#866995)
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Mar 6, 2014
1 parent 86f7cac commit 9314bb1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/installation/cio_ignore.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def proposal_entry
# TRANSLATORS: Installation overview
# IMPORTANT: Please, do not change the HTML link <a href="...">...</a>, only visible text
(_(
"Blacklist devices disabled (<a href=\"%1\">enable</a>)."
"Blacklist devices disabled (<a href=\"%s\">enable</a>)."
) % CIO_ENABLE_LINK)
end

Expand Down
10 changes: 10 additions & 0 deletions test/cio_ignore_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@
expect(result).to have_key("help")
expect(result).to have_key("preformatted_proposal")
end

it "change its content based on cio ignore proposal value" do
::Installation::CIOIgnore.instance.enabled = false

result = subject.run("MakeProposal")

expect(result).to have_key("links")
expect(result).to have_key("help")
expect(result["preformatted_proposal"]).to include("disabled")
end
end

describe "first parameter \"Description\"" do
Expand Down

0 comments on commit 9314bb1

Please sign in to comment.