Making tests more stable for travis

dev
Andy Meneely 2014-11-18 21:05:01 -05:00
parent 163c34c2ea
commit 993bc06176
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ describe Squib::Commands::New do
end
it 'creates a new template on an empty directory' do
FileUtils.mkdir_p('foo')
Dir.mkdir('foo')
@cmd.process(['foo'])
expect(File.exists?('foo/deck.rb')).to be true
end

View File

@ -26,7 +26,7 @@ end
def scrub_hex(str)
str.gsub(/0x\w{1,8}/,'')
.gsub(/ptr=\w{1,8}/,'')
.gsub(/FontDescription:\w{8}/,'FontDescription')
.gsub(/FontDescription:\w{1,8}/,'FontDescription')
.gsub(/Handle:\w{1,8}/,'Handle')
.gsub(/RGB:\w{1,8}/,'RGB:')
end