spec/unit/fonts_spec.rb in exogenesis-0.2.0 vs spec/unit/fonts_spec.rb in exogenesis-1.0.0
- old
+ new
@@ -22,12 +22,12 @@
describe :up do
it 'should copy fonts if they are not found' do
expect(executor).to receive(:execute)
- .with('Copying roboto.ttf', "cp #{config.fonts_path}/roboto.ttf #{ENV['HOME']}/Library/Fonts/roboto.ttf")
+ .with('Copying roboto.ttf', "cp '#{config.fonts_path}/roboto.ttf' '#{ENV['HOME']}/Library/Fonts/roboto.ttf'")
expect(executor).to receive(:execute)
- .with('Copying bignoodle.otf', "cp #{config.fonts_path}/bignoodle.otf #{ENV['HOME']}/Library/Fonts/bignoodle.otf")
+ .with('Copying bignoodle.otf', "cp '#{config.fonts_path}/bignoodle.otf' '#{ENV['HOME']}/Library/Fonts/bignoodle.otf'")
subject.up
end
it 'should skip fonts if they are found' do
expect(File).to receive(:exist?).and_return(true).twice