Browse Source

Making tests more stable for travis

dev
Andy Meneely 11 years ago
parent
commit
993bc06176
  1. 2
      spec/commands/new_spec.rb
  2. 2
      spec/spec_helper.rb

2
spec/commands/new_spec.rb

@ -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

2
spec/spec_helper.rb

@ -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…
Cancel
Save