Skip to content

Commit

Permalink
rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Feb 12, 2019
1 parent f1efb65 commit 70e9a4e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/host_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,15 +176,16 @@
end

context "import an emtpy host section" do
let(:org_etx_hosts) {file.content}
let(:org_etx_hosts) { file.content }

before do
Yast::Host.Import("hosts" => {})
end

it "does not reset /etc/hosts" do
expect(file).to receive(:write).with(
"/etc/hosts", file.content)
"/etc/hosts", file.content
)
Yast::Host.Write
end
end
Expand Down

0 comments on commit 70e9a4e

Please sign in to comment.