Making tests more stable for travis
parent
163c34c2ea
commit
993bc06176
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue