Skip to content
Snippets Groups Projects
Commit 59668d27 authored by Markus Reiter's avatar Markus Reiter
Browse files

Convert naked test to spec.

parent 92e2e7a2
No related branches found
No related tags found
No related merge requests found
require "test_helper"
require "spec_helper"
describe Hbc::Container::Naked do
it "saves files with spaces in them from uris with encoded spaces" do
......@@ -13,8 +13,13 @@ describe Hbc::Container::Naked do
Hbc::FakeSystemCommand.stubs_command(expected_command)
container = Hbc::Container::Naked.new(cask, path, Hbc::FakeSystemCommand)
container.extract
Hbc::FakeSystemCommand.system_calls[expected_command].must_equal 1
expect {
shutup do
container.extract
end
}.not_to raise_error
expect(Hbc::FakeSystemCommand.system_calls[expected_command]).to eq(1)
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment