Regression testing: cairo mock object stores graphics calls

So the idea behind this is maintain an "expected value" for the sample runs. We store the graphics calls and their arguments as a readable text file. Any change in the samples will break this, but the idea is to make sure this doesn't get broken unexpectedly.

Rearranged the data files in specs
This commit is contained in:
Andy Meneely
2014-11-18 01:53:00 -05:00
parent 3c3d63e1ae
commit 99ac612b8a
35 changed files with 3080 additions and 36 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ describe Squib::Commands::New do
end
it 'creates a new template on an empty directory' do
Dir.mkdir('foo')
FileUtils.mkdir_p('foo')
@cmd.process(['foo'])
expect(File.exists?('foo/deck.rb')).to be true
end