diff --git a/spec/commands/new_spec.rb b/spec/commands/new_spec.rb index 73bbbb8..036c1e9 100644 --- a/spec/commands/new_spec.rb +++ b/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 diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 6b43459..366498d 100644 --- a/spec/spec_helper.rb +++ b/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